diff --git a/kotlin-web/src/jsMain/generated/web/gpu/Aliases.kt b/kotlin-web/src/jsMain/generated/web/gpu/Aliases.kt new file mode 100644 index 0000000000000..241beef11791c --- /dev/null +++ b/kotlin-web/src/jsMain/generated/web/gpu/Aliases.kt @@ -0,0 +1,18 @@ +// Automatically generated - do not modify! + +package web.gpu + +import js.core.JsLong + +typealias GPUBufferDynamicOffset = Int +typealias GPUStencilValue = Int +typealias GPUSampleMask = Int +typealias GPUDepthBias = Int +typealias GPUSize64 = JsLong +typealias GPUIntegerCoordinate = Int +typealias GPUIndex32 = Int +typealias GPUSize32 = Int +typealias GPUSignedOffset32 = Int +typealias GPUSize64Out = JsLong +typealias GPUIntegerCoordinateOut = Int +typealias GPUSize32Out = Int diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUBindGroupEntry.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUBindGroupEntry.kt index 910a5208e2da1..a42211d5e4f3b 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUBindGroupEntry.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUBindGroupEntry.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject sealed external interface GPUBindGroupEntry { - var binding: Number + var binding: GPUIndex32 var resource: GPUBindingResource } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUBindGroupLayoutEntry.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUBindGroupLayoutEntry.kt index 7dbe3bec18d4f..0c1c997ae99e9 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUBindGroupLayoutEntry.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUBindGroupLayoutEntry.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject sealed external interface GPUBindGroupLayoutEntry { - var binding: Number + var binding: GPUIndex32 var visibility: GPUShaderStage var buffer: GPUBufferBindingLayout? var sampler: GPUSamplerBindingLayout? diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUBuffer.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUBuffer.kt index 0b8e38c7b873a..ea30d7728c6f6 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUBuffer.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUBuffer.kt @@ -9,18 +9,18 @@ import js.promise.Promise sealed external class GPUBuffer : GPUObjectBase { override var label: String - val size: Number + val size: GPUSize64Out val usage: GPUUsage val mapState: GPUBufferMapState fun mapAsync( mode: GPUMapMode, - offset: Number = definedExternally, - size: Number = definedExternally, + offset: GPUSize64 = definedExternally, + size: GPUSize64 = definedExternally, ): Promise fun getMappedRange( - offset: Number = definedExternally, - size: Number = definedExternally, + offset: GPUSize64 = definedExternally, + size: GPUSize64 = definedExternally, ): ArrayBuffer fun unmap() diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUBufferBinding.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUBufferBinding.kt index db0d5b6c29a0f..b8626cbba2be5 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUBufferBinding.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUBufferBinding.kt @@ -8,6 +8,6 @@ import js.objects.JsPlainObject sealed external interface GPUBufferBinding : GPUBindingResource { var buffer: GPUBuffer - var offset: Number? - var size: Number? + var offset: GPUSize64? + var size: GPUSize64? } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUBufferBindingLayout.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUBufferBindingLayout.kt index 60876461fbf4f..ce3be055da873 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUBufferBindingLayout.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUBufferBindingLayout.kt @@ -8,5 +8,5 @@ import js.objects.JsPlainObject sealed external interface GPUBufferBindingLayout { var type: GPUBufferBindingType? var hasDynamicOffset: Boolean? - var minBindingSize: Number? + var minBindingSize: GPUSize64? } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUBufferDescriptor.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUBufferDescriptor.kt index e39f2d04101e8..42cfbb563fd0f 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUBufferDescriptor.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUBufferDescriptor.kt @@ -4,7 +4,7 @@ package web.gpu sealed external interface GPUBufferDescriptor : GPUObjectDescriptorBase { - var size: Number + var size: GPUSize64 var usage: GPUBufferUsage var mappedAtCreation: Boolean? } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUCommandEncoder.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUCommandEncoder.kt index 23d8e48007fdf..d5e691d8870cb 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUCommandEncoder.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUCommandEncoder.kt @@ -9,10 +9,10 @@ sealed external class GPUCommandEncoder : fun beginComputePass(descriptor: GPUComputePassDescriptor = definedExternally): GPUComputePassEncoder fun copyBufferToBuffer( source: GPUBuffer, - sourceOffset: Number, + sourceOffset: GPUSize64, destination: GPUBuffer, - destinationOffset: Number, - size: Number, + destinationOffset: GPUSize64, + size: GPUSize64, ) fun copyBufferToTexture( @@ -35,8 +35,8 @@ sealed external class GPUCommandEncoder : fun clearBuffer( destination: GPUBuffer, - destinationOffset: Number = definedExternally, - size: Number = definedExternally, + destinationOffset: GPUSize64 = definedExternally, + size: GPUSize64 = definedExternally, ) fun pushDebugGroup(groupLabel: String) @@ -49,10 +49,10 @@ sealed external class GPUCommandEncoder : fun resolveQuerySet( querySet: GPUQuerySet, - firstQuery: Number, - queryCount: Number, + firstQuery: GPUSize32, + queryCount: GPUSize32, destination: GPUBuffer, - destinationOffset: Number, + destinationOffset: GPUSize64, ) fun finish(descriptor: GPUCommandBufferDescriptor = definedExternally): GPUCommandBuffer diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUComputePassEncoder.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUComputePassEncoder.kt index ce4fd34650f71..b52fc36462a8f 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUComputePassEncoder.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUComputePassEncoder.kt @@ -35,7 +35,7 @@ sealed external class GPUComputePassEncoder : fun dispatchWorkgroupsIndirect( indirectBuffer: GPUBuffer, - indirectOffset: Number, + indirectOffset: GPUSize64, ) fun end() diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUComputePassTimestampWrites.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUComputePassTimestampWrites.kt index 94b10dd812726..5e1772ee18d51 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUComputePassTimestampWrites.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUComputePassTimestampWrites.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject sealed external interface GPUComputePassTimestampWrites { var querySet: GPUQuerySet - var beginningOfPassWriteIndex: Number? - var endOfPassWriteIndex: Number? + var beginningOfPassWriteIndex: GPUSize32? + var endOfPassWriteIndex: GPUSize32? } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUDepthStencilState.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUDepthStencilState.kt index 8ea0a48df1492..2330ac62e7fa7 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUDepthStencilState.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUDepthStencilState.kt @@ -11,9 +11,9 @@ sealed external interface GPUDepthStencilState { var depthCompare: GPUCompareFunction var stencilFront: GPUStencilFaceState? var stencilBack: GPUStencilFaceState? - var stencilReadMask: Number? - var stencilWriteMask: Number? - var depthBias: Number? + var stencilReadMask: GPUStencilValue? + var stencilWriteMask: GPUStencilValue? + var depthBias: GPUDepthBias? var depthBiasSlopeScale: Float? var depthBiasClamp: Float? } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUExtent3DDict.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUExtent3DDict.kt index f4fa407b1eea6..f226285ef5cbb 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUExtent3DDict.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUExtent3DDict.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject sealed external interface GPUExtent3DDict { - var width: Number - var height: Number? - var depthOrArrayLayers: Number? + var width: GPUIntegerCoordinate + var height: GPUIntegerCoordinate? + var depthOrArrayLayers: GPUIntegerCoordinate? } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUImageCopyTexture.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUImageCopyTexture.kt index 8b29d429f30ad..a9ad3be3dbeb0 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUImageCopyTexture.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUImageCopyTexture.kt @@ -7,7 +7,7 @@ import js.objects.JsPlainObject @JsPlainObject sealed external interface GPUImageCopyTexture { var texture: GPUTexture - var mipLevel: Number? + var mipLevel: GPUIntegerCoordinate? var origin: GPUOrigin3D? var aspect: GPUTextureAspect? } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUImageDataLayout.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUImageDataLayout.kt index 140381bd97da6..f2011a1a9fbbb 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUImageDataLayout.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUImageDataLayout.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject sealed external interface GPUImageDataLayout { - var offset: Number? - var bytesPerRow: Number? - var rowsPerImage: Number? + var offset: GPUSize64? + var bytesPerRow: GPUSize32? + var rowsPerImage: GPUSize32? } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUMultisampleState.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUMultisampleState.kt index 8d020547dd809..6ce6a41601301 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUMultisampleState.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUMultisampleState.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject sealed external interface GPUMultisampleState { - var count: Number? - var mask: Number? + var count: GPUSize32? + var mask: GPUSampleMask? var alphaToCoverageEnabled: Boolean? } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUOrigin3DDict.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUOrigin3DDict.kt index af1c6021e3224..633efdef75cc2 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUOrigin3DDict.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUOrigin3DDict.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject sealed external interface GPUOrigin3DDict { - var x: Number? - var y: Number? - var z: Number? + var x: GPUIntegerCoordinate? + var y: GPUIntegerCoordinate? + var z: GPUIntegerCoordinate? } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUQuerySet.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUQuerySet.kt index 383aae61f90db..33444186c86c3 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUQuerySet.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUQuerySet.kt @@ -7,5 +7,5 @@ sealed external class GPUQuerySet : override var label: String fun destroy() val type: GPUQueryType - val count: Number + val count: GPUSize32Out } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUQuerySetDescriptor.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUQuerySetDescriptor.kt index 5ba1b2dfa1846..b7e0b2a9d97a9 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUQuerySetDescriptor.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUQuerySetDescriptor.kt @@ -5,5 +5,5 @@ package web.gpu sealed external interface GPUQuerySetDescriptor : GPUObjectDescriptorBase { var type: GPUQueryType - var count: Number + var count: GPUSize32 } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUQueue.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUQueue.kt index f1f13028b8ca6..24ec9fc7c1cd2 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUQueue.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUQueue.kt @@ -14,10 +14,10 @@ sealed external class GPUQueue : fun onSubmittedWorkDone(): Promise fun writeBuffer( buffer: GPUBuffer, - bufferOffset: Number, + bufferOffset: GPUSize64, data: BufferSource, - dataOffset: Number = definedExternally, - size: Number = definedExternally, + dataOffset: GPUSize64 = definedExternally, + size: GPUSize64 = definedExternally, ) fun writeTexture( diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassDepthStencilAttachment.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassDepthStencilAttachment.kt index 58796610692ef..6a3bf16bf9bfb 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassDepthStencilAttachment.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassDepthStencilAttachment.kt @@ -11,7 +11,7 @@ sealed external interface GPURenderPassDepthStencilAttachment { var depthLoadOp: GPULoadOp? var depthStoreOp: GPUStoreOp? var depthReadOnly: Boolean? - var stencilClearValue: Number? + var stencilClearValue: GPUStencilValue? var stencilLoadOp: GPULoadOp? var stencilStoreOp: GPUStoreOp? var stencilReadOnly: Boolean? diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassEncoder.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassEncoder.kt index 9d80b1219e3f7..5a4d0d360fc41 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassEncoder.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassEncoder.kt @@ -68,24 +68,24 @@ sealed external class GPURenderPassEncoder : ) fun setViewport( - x: Float, - y: Float, - width: Float, - height: Float, + x: GPUIntegerCoordinate, + y: GPUIntegerCoordinate, + width: GPUIntegerCoordinate, + height: GPUIntegerCoordinate, minDepth: Float, maxDepth: Float, ) fun setScissorRect( - x: Float, - y: Float, - width: Float, - height: Float, + x: GPUIntegerCoordinate, + y: GPUIntegerCoordinate, + width: GPUIntegerCoordinate, + height: GPUIntegerCoordinate, ) fun setBlendConstant(color: GPUColor) - fun setStencilReference(reference: Number) - fun beginOcclusionQuery(queryIndex: Number) + fun setStencilReference(reference: GPUStencilValue) + fun beginOcclusionQuery(queryIndex: GPUSize32) fun endOcclusionQuery() fun executeBundles(bundles: ReadonlyArray) fun end() diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassLayout.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassLayout.kt index 5c1e04afd738f..606b839f2a561 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassLayout.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassLayout.kt @@ -8,5 +8,5 @@ sealed external interface GPURenderPassLayout : GPUObjectDescriptorBase { var colorFormats: ReadonlyArray var depthStencilFormat: GPUTextureFormat? - var sampleCount: Number? + var sampleCount: GPUSize32? } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassTimestampWrites.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassTimestampWrites.kt index 997bc1c8b6ef4..ea3b7b8087f3f 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassTimestampWrites.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPURenderPassTimestampWrites.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject sealed external interface GPURenderPassTimestampWrites { var querySet: GPUQuerySet - var beginningOfPassWriteIndex: Number? - var endOfPassWriteIndex: Number? + var beginningOfPassWriteIndex: GPUSize32? + var endOfPassWriteIndex: GPUSize32? } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUTexture.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUTexture.kt index 527ebb7649847..1a629f80e385c 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUTexture.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUTexture.kt @@ -7,11 +7,11 @@ sealed external class GPUTexture : override var label: String fun createView(descriptor: GPUTextureViewDescriptor = definedExternally): GPUTextureView fun destroy() - val width: Number - val height: Number - val depthOrArrayLayers: Number - val mipLevelCount: Number - val sampleCount: Number + val width: GPUIntegerCoordinateOut + val height: GPUIntegerCoordinateOut + val depthOrArrayLayers: GPUIntegerCoordinateOut + val mipLevelCount: GPUIntegerCoordinateOut + val sampleCount: GPUSize32Out val dimension: GPUTextureDimension val format: GPUTextureFormat val usage: GPUUsage diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUTextureDescriptor.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUTextureDescriptor.kt index 5b79b866cbb01..7e458085dc71f 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUTextureDescriptor.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUTextureDescriptor.kt @@ -7,8 +7,8 @@ import js.array.ReadonlyArray sealed external interface GPUTextureDescriptor : GPUObjectDescriptorBase { var size: GPUExtent3D - var mipLevelCount: Number? - var sampleCount: Number? + var mipLevelCount: GPUIntegerCoordinate? + var sampleCount: GPUSize32? var dimension: GPUTextureDimension? var format: GPUTextureFormat var usage: GPUTextureUsage diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUTextureViewDescriptor.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUTextureViewDescriptor.kt index 9d78899bc66f3..0a9a177cce591 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUTextureViewDescriptor.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUTextureViewDescriptor.kt @@ -7,8 +7,8 @@ sealed external interface GPUTextureViewDescriptor : var format: GPUTextureFormat? var dimension: GPUTextureViewDimension? var aspect: GPUTextureAspect? - var baseMipLevel: Number? - var mipLevelCount: Number? - var baseArrayLayer: Number? - var arrayLayerCount: Number? + var baseMipLevel: GPUIntegerCoordinate? + var mipLevelCount: GPUIntegerCoordinate? + var baseArrayLayer: GPUIntegerCoordinate? + var arrayLayerCount: GPUIntegerCoordinate? } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUVertexAttribute.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUVertexAttribute.kt index c2ea25f3a3c7f..7c6bf6ff8b229 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUVertexAttribute.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUVertexAttribute.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject sealed external interface GPUVertexAttribute { var format: GPUVertexFormat - var offset: Number - var shaderLocation: Number + var offset: GPUSize64 + var shaderLocation: GPUIndex32 } diff --git a/kotlin-web/src/jsMain/generated/web/gpu/GPUVertexBufferLayout.kt b/kotlin-web/src/jsMain/generated/web/gpu/GPUVertexBufferLayout.kt index 7f43a6d039202..3af8ad28951ba 100644 --- a/kotlin-web/src/jsMain/generated/web/gpu/GPUVertexBufferLayout.kt +++ b/kotlin-web/src/jsMain/generated/web/gpu/GPUVertexBufferLayout.kt @@ -7,7 +7,7 @@ import js.objects.JsPlainObject @JsPlainObject sealed external interface GPUVertexBufferLayout { - var arrayStride: Number + var arrayStride: GPUSize64 var stepMode: GPUVertexStepMode? var attributes: ReadonlyArray }