WebGPU.rocks Logo

GPURenderPassColorAttachment

  • view: GPUTexture | GPUTextureViewrequired

    GPUTexture

    • label: USVString
    • width: GPUIntegerCoordinateOut
    • height: GPUIntegerCoordinateOut
    • depthOrArrayLayers: GPUIntegerCoordinateOut
    • mipLevelCount: GPUIntegerCoordinateOut
    • sampleCount: GPUSize32Out
    • dimension: GPUTextureDimension
    • format: GPUTextureFormat
    • usage: GPUFlagsConstant
    • textureBindingViewDimension: GPUTextureViewDimension | void
    • createView(descriptor: GPUTextureViewDescriptor): GPUTextureView
    • destroy(): void

    GPUTextureView

    • label: USVString
  • depthSlice: GPUIntegerCoordinate

    GPUIntegerCoordinate

    typedef GPUIntegerCoordinate = unsigned long
  • resolveTarget: GPUTexture | GPUTextureView

    GPUTexture

    • label: USVString
    • width: GPUIntegerCoordinateOut
    • height: GPUIntegerCoordinateOut
    • depthOrArrayLayers: GPUIntegerCoordinateOut
    • mipLevelCount: GPUIntegerCoordinateOut
    • sampleCount: GPUSize32Out
    • dimension: GPUTextureDimension
    • format: GPUTextureFormat
    • usage: GPUFlagsConstant
    • textureBindingViewDimension: GPUTextureViewDimension | void
    • createView(descriptor: GPUTextureViewDescriptor): GPUTextureView
    • destroy(): void

    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'