WebGPU.rocks Logo

GPURenderPassDescriptor

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

    GPURenderPassColorAttachment

    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= 0
    • 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: GPUSize32
    • destroy(): void
  • timestampWrites: GPURenderPassTimestampWrites= []

    GPURenderPassTimestampWrites

    typedef GPURenderPassTimestampWrites = sequence<GPURenderPassTimestampWrite>

    GPURenderPassTimestampWrite

    • querySet: GPUQuerySetrequired
    • queryIndex: GPUSize32required
    • location: GPURenderPassTimestampLocationrequired

    GPUSize32

    typedef GPUSize32 = unsigned long

    GPURenderPassTimestampLocation

    'beginning', 'end'
  • maxDrawCount: GPUSize64= 50000000

    GPUSize64

    typedef GPUSize64 = unsigned long long