RenderPipelineDescriptor

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())

Constructors

Link copied to clipboard
constructor(vertex: RenderPipelineDescriptor.VertexState, label: String? = null, layout: PipelineLayout? = null, primitive: RenderPipelineDescriptor.PrimitiveState = PrimitiveState(), depthStencil: RenderPipelineDescriptor.DepthStencilState? = null, fragment: RenderPipelineDescriptor.FragmentState? = null, multisample: RenderPipelineDescriptor.MultisampleState = MultisampleState())

Types

Link copied to clipboard
data class DepthStencilState(val format: TextureFormat, val depthWriteEnabled: Boolean? = null, val depthCompare: CompareFunction? = null, val stencilFront: RenderPipelineDescriptor.DepthStencilState.StencilFaceState = StencilFaceState(), val stencilBack: RenderPipelineDescriptor.DepthStencilState.StencilFaceState = StencilFaceState(), val stencilReadMask: GPUStencilValue, val stencilWriteMask: GPUStencilValue, val depthBias: GPUDepthBias = 0, val depthBiasSlopeScale: Float = 0.0f, val depthBiasClamp: Float = 0.0f)
Link copied to clipboard
data class FragmentState(val module: ShaderModule, val targets: List<RenderPipelineDescriptor.FragmentState.ColorTargetState> = listOf(), val entryPoint: String = "main")
Link copied to clipboard
data class MultisampleState(val count: GPUSize32, val mask: GPUSampleMask, val alphaToCoverageEnabled: Boolean = false)
Link copied to clipboard
data class PrimitiveState(val topology: PrimitiveTopology = PrimitiveTopology.TriangleList, val stripIndexFormat: IndexFormat? = null, val frontFace: FrontFace = FrontFace.CCW, val cullMode: CullMode = CullMode.None, val unclippedDepth: Boolean = false)
Link copied to clipboard
data class VertexState(val module: ShaderModule, val entryPoint: String = "main", val constants: Map<String, GPUPipelineConstantValue>? = null, val buffers: List<RenderPipelineDescriptor.VertexState.VertexBufferLayout> = listOf())

Properties

Link copied to clipboard
Link copied to clipboard
val label: String? = null
Link copied to clipboard
val layout: PipelineLayout? = null
Link copied to clipboard