Skip to content

Commit

Permalink
GPU. Constants [generated] (#2219)
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Mar 2, 2024
1 parent b38363b commit e0ef4d6
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion kotlin-web/src/jsMain/generated/web/gpu/GPUBuffer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sealed external class GPUBuffer :
GPUObjectBase {
override var label: String
val size: Number
val usage: GPUConstant
val usage: GPUUsage
val mapState: GPUBufferMapState
fun mapAsync(
mode: GPUMapMode,
Expand Down
4 changes: 2 additions & 2 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUBufferUsage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

package web.gpu

external interface GPUBufferUsage
: GPUConstant {
external interface GPUBufferUsage :
GPUUsage {
companion object {
val MAP_READ: GPUBufferUsage // 0x0001
val MAP_WRITE: GPUBufferUsage // 0x0002
Expand Down
3 changes: 1 addition & 2 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUColorWrite.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

package web.gpu

external interface GPUColorWrite
: GPUConstant {
external interface GPUColorWrite {
companion object {
val RED: GPUColorWrite // 0x1
val GREEN: GPUColorWrite // 0x2
Expand Down
3 changes: 1 addition & 2 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUMapMode.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

package web.gpu

external interface GPUMapMode
: GPUConstant {
external interface GPUMapMode {
companion object {
val READ: GPUMapMode // 0x0001
val WRITE: GPUMapMode // 0x0002
Expand Down
3 changes: 1 addition & 2 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUShaderStage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

package web.gpu

external interface GPUShaderStage
: GPUConstant {
external interface GPUShaderStage {
companion object {
val VERTEX: GPUShaderStage // 0x1
val FRAGMENT: GPUShaderStage // 0x2
Expand Down
2 changes: 1 addition & 1 deletion kotlin-web/src/jsMain/generated/web/gpu/GPUTexture.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ sealed external class GPUTexture :
val sampleCount: Number
val dimension: GPUTextureDimension
val format: GPUTextureFormat
val usage: GPUConstant
val usage: GPUUsage
}
4 changes: 2 additions & 2 deletions kotlin-web/src/jsMain/generated/web/gpu/GPUTextureUsage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

package web.gpu

external interface GPUTextureUsage
: GPUConstant {
external interface GPUTextureUsage :
GPUUsage {
companion object {
val COPY_SRC: GPUTextureUsage // 0x01
val COPY_DST: GPUTextureUsage // 0x02
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package web.gpu

sealed external interface GPUConstant
sealed external interface GPUUsage

0 comments on commit e0ef4d6

Please sign in to comment.