WebGPU.rocks Logo

GPURenderPassDescriptor

  • label: USVString= ''
  • colorAttachments: sequence<GPURenderPassColorAttachment>required

    GPURenderPassColorAttachment

    • view: GPUTextureViewrequired
    • depthSlice: GPUIntegerCoordinate
    • resolveTarget: GPUTextureView
    • clearValue: GPUColor
    • loadOp: GPULoadOprequired
    • storeOp: GPUStoreOprequired

    GPUIntegerCoordinate

    typedef GPUIntegerCoordinate = unsigned long

    GPUColor

    typedef GPUColor = sequence<double> | GPUColorDict

    GPUColorDict

    • r: doublerequired
    • g: doublerequired
    • b: doublerequired
    • a: doublerequired

    GPULoadOp

    'load', 'clear'

    GPUStoreOp

    'store', 'discard'
  • depthStencilAttachment: GPURenderPassDepthStencilAttachment

    GPURenderPassDepthStencilAttachment

    • view: GPUTextureViewrequired
    • depthClearValue: float
    • depthLoadOp: GPULoadOp
    • depthStoreOp: GPUStoreOp
    • depthReadOnly: boolean= 'false'
    • stencilClearValue: GPUStencilValue= 0
    • stencilLoadOp: GPULoadOp
    • stencilStoreOp: GPUStoreOp
    • stencilReadOnly: boolean= 'false'

    GPULoadOp

    'load', 'clear'

    GPUStoreOp

    'store', 'discard'

    GPUStencilValue

    typedef GPUStencilValue = unsigned long
  • occlusionQuerySet: GPUQuerySet

    GPUQuerySet

    • label: USVString
    • type: GPUQueryType
    • count: GPUSize32Out
    • destroy(): void
  • timestampWrites: GPURenderPassTimestampWrites

    GPURenderPassTimestampWrites

    • querySet: GPUQuerySetrequired
    • beginningOfPassWriteIndex: GPUSize32
    • endOfPassWriteIndex: GPUSize32

    GPUSize32

    typedef GPUSize32 = unsigned long
  • maxDrawCount: GPUSize64= 50000000

    GPUSize64

    typedef GPUSize64 = unsigned long long