Package-level declarations
Types
Link copied to clipboard
The GPUAdapter interface of the WebGPU API represents a GPU adapter. From this you can request a Device, adapter info, features, and limits.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class BindGroupDescriptor(val layout: BindGroupLayout, val entries: List<BindGroupDescriptor.BindGroupEntry>, val label: String? = null)
Link copied to clipboard
Link copied to clipboard
data class BindGroupLayoutDescriptor(val entries: List<BindGroupLayoutDescriptor.Entry>, val label: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class BufferDescriptor(val size: GPUSize64, val usage: Set<BufferUsage>, val mappedAtCreation: Boolean = false, val label: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ComputePassDescriptor(val label: String? = null, val timestampWrites: ComputePassDescriptor.ComputePassTimestampWrites? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ComputePipelineDescriptor(val compute: ComputePipelineDescriptor.ProgrammableStage, val layout: PipelineLayout? = null, val label: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class DeviceDescriptor(val label: String? = null, val requiredFeatures: Set<FeatureName> = setOf(), val requiredLimits: Map<String, GPUSize64> = mapOf(), val defaultQueue: QueueDescriptor = QueueDescriptor())
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface EnumerationWithValue
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ImageCopyBuffer(val buffer: Buffer, val offset: GPUSize64, val bytesPerRow: GPUSize32, val rowsPerImage: GPUSize32)
Link copied to clipboard
data class ImageCopyExternalImage(val source: DrawableHolder, val origin: GPUIntegerCoordinates = 0u to 0u, val flipY: Boolean = false)
Link copied to clipboard
data class ImageCopyTexture(val texture: Texture, val mipLevel: GPUIntegerCoordinate, val origin: Origin3D = Origin3D(0u, 0u), val aspect: TextureAspect = TextureAspect.All)
Link copied to clipboard
data class ImageCopyTextureTagged(val colorSpace: PredefinedColorSpace = PredefinedColorSpace.srgb, val premultipliedAlpha: Boolean = false, val texture: Texture, val mipLevel: GPUIntegerCoordinate, val origin: Origin3D = Origin3D(), val aspect: TextureAspect = TextureAspect.All)
Link copied to clipboard
Link copied to clipboard
data class Limits(val maxTextureDimension1D: UInt, val maxTextureDimension2D: UInt, val maxTextureDimension3D: UInt, val maxTextureArrayLayers: UInt, val maxBindGroups: UInt, val maxBindGroupsPlusVertexBuffers: UInt, val maxBindingsPerBindGroup: UInt, val maxDynamicUniformBuffersPerPipelineLayout: UInt, val maxDynamicStorageBuffersPerPipelineLayout: UInt, val maxSampledTexturesPerShaderStage: UInt, val maxSamplersPerShaderStage: UInt, val maxStorageBuffersPerShaderStage: UInt, val maxStorageTexturesPerShaderStage: UInt, val maxUniformBuffersPerShaderStage: UInt, val maxUniformBufferBindingSize: ULong, val maxStorageBufferBindingSize: ULong, val minUniformBufferOffsetAlignment: UInt, val minStorageBufferOffsetAlignment: UInt, val maxVertexBuffers: UInt, val maxBufferSize: ULong, val maxVertexAttributes: UInt, val maxVertexBufferArrayStride: UInt, val maxInterStageShaderVariables: UInt, val maxColorAttachments: UInt, val maxColorAttachmentBytesPerSample: UInt, val maxComputeWorkgroupStorageSize: UInt, val maxComputeInvocationsPerWorkgroup: UInt, val maxComputeWorkgroupSizeX: UInt, val maxComputeWorkgroupSizeY: UInt, val maxComputeWorkgroupSizeZ: UInt, val maxComputeWorkgroupsPerDimension: UInt)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class Origin3D(val x: GPUIntegerCoordinate, val y: GPUIntegerCoordinate, val z: GPUIntegerCoordinate)
Link copied to clipboard
Link copied to clipboard
data class PipelineLayoutDescriptor(val bindGroupLayouts: List<BindGroupLayout> = listOf(), val label: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class RenderBundleEncoderDescriptor(val label: String? = null, val colorFormats: List<TextureFormat>, val depthStencilFormat: TextureFormat, val sampleCount: GPUSize32, val depthReadOnly: Boolean = false, val stencilReadOnly: Boolean = false)
Link copied to clipboard
data class RenderPassDescriptor(val colorAttachments: List<RenderPassDescriptor.ColorAttachment> = listOf(), val depthStencilAttachment: RenderPassDescriptor.DepthStencilAttachment? = null, val occlusionQuerySet: QuerySet? = null, val timestampWrites: RenderPassTimestampWrites? = null, val maxDrawCount: GPUSize64, val label: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class RenderPipelineDescriptor(val vertex: RenderPipelineDescriptor.VertexState, val label: String? = null, val layout: PipelineLayout? = null, val primitive: RenderPipelineDescriptor.PrimitiveState = PrimitiveState(), val depthStencil: RenderPipelineDescriptor.DepthStencilState? = null, val fragment: RenderPipelineDescriptor.FragmentState? = null, val multisample: RenderPipelineDescriptor.MultisampleState = MultisampleState())
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
A GPUSampler encodes transformations and filtering information that can be used in a shader to interpret texture resource data.
Link copied to clipboard
Link copied to clipboard
data class SamplerDescriptor(val addressModeU: AddressMode = AddressMode.ClampToEdge, val addressModeV: AddressMode = AddressMode.ClampToEdge, val addressModeW: AddressMode = AddressMode.ClampToEdge, val magFilter: FilterMode = FilterMode.Nearest, val minFilter: FilterMode = FilterMode.Nearest, val mipmapFilter: MipmapFilterMode = MipmapFilterMode.Nearest, val lodMinClamp: Float = 0.0f, val lodMaxClamp: Float = 32.0f, val compare: CompareFunction? = null, val maxAnisotropy: UShort, val label: String? = null)
A GPUSamplerDescriptor specifies the options to use to create a GPUSampler.
Link copied to clipboard
Link copied to clipboard
data class ShaderModuleDescriptor(val code: String, val label: String? = null, val sourceMap: Any? = null, val compilationHints: List<ShaderModuleDescriptor.CompilationHint> = listOf())
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class SupportedLimits(val maxTextureDimension1D: UInt, val maxTextureDimension2D: UInt, val maxTextureDimension3D: UInt, val maxTextureArrayLayers: UInt, val maxBindGroups: UInt, val maxBindGroupsPlusVertexBuffers: UInt, val maxBindingsPerBindGroup: UInt, val maxDynamicUniformBuffersPerPipelineLayout: UInt, val maxDynamicStorageBuffersPerPipelineLayout: UInt, val maxSampledTexturesPerShaderStage: UInt, val maxSamplersPerShaderStage: UInt, val maxStorageBuffersPerShaderStage: UInt, val maxStorageTexturesPerShaderStage: UInt, val maxUniformBuffersPerShaderStage: UInt, val maxUniformBufferBindingSize: ULong, val maxStorageBufferBindingSize: ULong, val minUniformBufferOffsetAlignment: UInt, val minStorageBufferOffsetAlignment: UInt, val maxVertexBuffers: UInt, val maxBufferSize: ULong, val maxVertexAttributes: UInt, val maxVertexBufferArrayStride: UInt, val maxInterStageShaderVariables: UInt, val maxColorAttachments: UInt, val maxColorAttachmentBytesPerSample: UInt, val maxComputeWorkgroupStorageSize: UInt, val maxComputeInvocationsPerWorkgroup: UInt, val maxComputeWorkgroupSizeX: UInt, val maxComputeWorkgroupSizeY: UInt, val maxComputeWorkgroupSizeZ: UInt, val maxComputeWorkgroupsPerDimension: UInt)
The GPUSupportedLimits interface of the WebGPU API describes the limits supported by a Adapter.
Link copied to clipboard
data class SurfaceConfiguration(val device: Device, val format: TextureFormat, val usage: Set<TextureUsage> = setOf(TextureUsage.RenderAttachment), val viewFormats: Set<TextureFormat> = setOf(), val colorSpace: PredefinedColorSpace = PredefinedColorSpace.srgb, val alphaMode: CompositeAlphaMode = CompositeAlphaMode.Opaque, val presentMode: PresentMode = PresentMode.Fifo)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class TextureDataLayout(val offset: GPUSize64, val bytesPerRow: GPUSize32? = null, val rowsPerImage: GPUSize32? = null)
Link copied to clipboard
data class TextureDescriptor(val size: Size3D, val format: TextureFormat, val usage: Set<TextureUsage>, val mipLevelCount: GPUIntegerCoordinate, val sampleCount: GPUSize32, val dimension: TextureDimension = TextureDimension.TwoD, val viewFormats: List<TextureFormat> = listOf(), val label: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class TextureViewDescriptor(val label: String? = null, val format: TextureFormat? = null, val dimension: TextureViewDimension? = null, val aspect: TextureAspect = TextureAspect.All, val baseMipLevel: GPUIntegerCoordinate, val mipLevelCount: GPUIntegerCoordinate, val baseArrayLayer: GPUIntegerCoordinate, val arrayLayerCount: GPUIntegerCoordinate)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
inline fun CommandEncoder.beginRenderPass(descriptor: RenderPassDescriptor, then: RenderPassEncoder.() -> Unit)
Link copied to clipboard
Link copied to clipboard
get Canvas Surface
Link copied to clipboard
Link copied to clipboard
request Adapter
Link copied to clipboard
Link copied to clipboard