WebGPU.rocks Logo

GPURenderPassColorAttachment

  • view: GPUTextureViewrequired

    GPUTextureView

    • label: USVString
  • depthSlice: GPUIntegerCoordinate

    GPUIntegerCoordinate

    typedef GPUIntegerCoordinate = unsigned long
  • resolveTarget: GPUTextureView

    GPUTextureView

    • label: USVString
  • clearValue: GPUColor

    GPUColor

    typedef GPUColor = sequence<double> | GPUColorDict

    GPUColorDict

    • r: doublerequired
    • g: doublerequired
    • b: doublerequired
    • a: doublerequired
  • loadOp: GPULoadOprequired

    GPULoadOp

    'load', 'clear'
  • storeOp: GPUStoreOprequired

    GPUStoreOp

    'store', 'discard'