ZGpuRenderPass

expect class ZGpuRenderPass(source)
actual class ZGpuRenderPass(source)
actual class ZGpuRenderPass(source)
actual class ZGpuRenderPass(source)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
expect fun applyPassState(state: ZGpuPassState)
actual fun applyPassState(state: ZGpuPassState)
actual fun applyPassState(state: ZGpuPassState)
actual fun applyPassState(state: ZGpuPassState)
Link copied to clipboard
fun drawIndexed(indexCount: Int, drawMode: ZDrawMode, firstIndex: Int = 0)
fun drawIndexed(indexCount: Int)
Link copied to clipboard
expect fun end()
actual fun end()
actual fun end()
actual fun end()
Link copied to clipboard
fun setBindGroup(index: Int, group: GPUBindGroup)
Link copied to clipboard
fun setFragmentTexture(slot: Int, texture: MTLTextureProtocol, sampler: MTLSamplerStateProtocol)
Link copied to clipboard
fun setIndexBuffer(buffer: MTLBufferProtocol, format: ULong = MTLIndexTypeUInt16)
fun setIndexBuffer(buffer: GPUBuffer, format: String = "uint16")
Link copied to clipboard
fun setPipeline(pipeline: MTLRenderPipelineStateProtocol)
Link copied to clipboard
fun setUniformBuffer(stage: ZShaderType, slot: Int, buffer: MTLBufferProtocol, offset: Long = 0)
Link copied to clipboard
fun setVertexBuffer(slot: Int, buffer: MTLBufferProtocol, offset: Long = 0)
fun setVertexBuffer(slot: Int, buffer: GPUBuffer)