Skip to content

Commit

Permalink
GPU. Unions [generated] (#2219)
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Mar 2, 2024
1 parent 294288a commit e4510db
Show file tree
Hide file tree
Showing 26 changed files with 459 additions and 0 deletions.
24 changes: 24 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUAddressMode.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPUAddressMode {
companion object {
@JsValue("clamp-to-edge")
val clampToEdge: GPUAddressMode

@JsValue("repeat")
val repeat: GPUAddressMode

@JsValue("mirror-repeat")
val mirrorRepeat: GPUAddressMode
}
}
18 changes: 18 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUAutoLayoutMode.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPUAutoLayoutMode {
companion object {
@JsValue("auto")
val auto: GPUAutoLayoutMode
}
}
24 changes: 24 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUBufferBindingType.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPUBufferBindingType {
companion object {
@JsValue("uniform")
val uniform: GPUBufferBindingType

@JsValue("storage")
val storage: GPUBufferBindingType

@JsValue("read-only-storage")
val readOnlyStorage: GPUBufferBindingType
}
}
24 changes: 24 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUBufferMapState.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPUBufferMapState {
companion object {
@JsValue("unmapped")
val unmapped: GPUBufferMapState

@JsValue("pending")
val pending: GPUBufferMapState

@JsValue("mapped")
val mapped: GPUBufferMapState
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Automatically generated - do not modify!

package web.gpu

typealias GPUBufferUsageFlags = Double
21 changes: 21 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUCanvasAlphaMode.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPUCanvasAlphaMode {
companion object {
@JsValue("opaque")
val opaque: GPUCanvasAlphaMode

@JsValue("premultiplied")
val premultiplied: GPUCanvasAlphaMode
}
}
5 changes: 5 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUColorWriteFlags.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Automatically generated - do not modify!

package web.gpu

typealias GPUColorWriteFlags = Double
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPUCompilationMessageType {
companion object {
@JsValue("error")
val error: GPUCompilationMessageType

@JsValue("warning")
val warning: GPUCompilationMessageType

@JsValue("info")
val info: GPUCompilationMessageType
}
}
24 changes: 24 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUCullMode.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPUCullMode {
companion object {
@JsValue("none")
val none: GPUCullMode

@JsValue("front")
val front: GPUCullMode

@JsValue("back")
val back: GPUCullMode
}
}
18 changes: 18 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUDeviceLostReason.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPUDeviceLostReason {
companion object {
@JsValue("destroyed")
val destroyed: GPUDeviceLostReason
}
}
21 changes: 21 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUErrorFilter.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPUErrorFilter {
companion object {
@JsValue("out-of-memory")
val outOfMemory: GPUErrorFilter

@JsValue("validation")
val validation: GPUErrorFilter
}
}
21 changes: 21 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUFilterMode.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPUFilterMode {
companion object {
@JsValue("nearest")
val nearest: GPUFilterMode

@JsValue("linear")
val linear: GPUFilterMode
}
}
5 changes: 5 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUFlagsConstant.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Automatically generated - do not modify!

package web.gpu

typealias GPUFlagsConstant = Double
21 changes: 21 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUFrontFace.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPUFrontFace {
companion object {
@JsValue("ccw")
val ccw: GPUFrontFace

@JsValue("cw")
val cw: GPUFrontFace
}
}
21 changes: 21 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUIndexFormat.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPUIndexFormat {
companion object {
@JsValue("uint16")
val uint16: GPUIndexFormat

@JsValue("uint32")
val uint32: GPUIndexFormat
}
}
21 changes: 21 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPULoadOp.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPULoadOp {
companion object {
@JsValue("load")
val load: GPULoadOp

@JsValue("clear")
val clear: GPULoadOp
}
}
5 changes: 5 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUMapModeFlags.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Automatically generated - do not modify!

package web.gpu

typealias GPUMapModeFlags = Double
21 changes: 21 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUMipmapFilterMode.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPUMipmapFilterMode {
companion object {
@JsValue("nearest")
val nearest: GPUMipmapFilterMode

@JsValue("linear")
val linear: GPUMipmapFilterMode
}
}
21 changes: 21 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUPowerPreference.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPUPowerPreference {
companion object {
@JsValue("low-power")
val lowPower: GPUPowerPreference

@JsValue("high-performance")
val highPerformance: GPUPowerPreference
}
}
21 changes: 21 additions & 0 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUQueryType.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package web.gpu

import seskar.js.JsValue
import seskar.js.JsVirtual

@JsVirtual
sealed external interface GPUQueryType {
companion object {
@JsValue("occlusion")
val occlusion: GPUQueryType

@JsValue("timestamp")
val timestamp: GPUQueryType
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Automatically generated - do not modify!

package web.gpu

typealias GPUShaderStageFlags = Double
Loading

0 comments on commit e4510db

Please sign in to comment.