GPURenderPassColorAttachment constructor

GPURenderPassColorAttachment({
  1. required GPUTextureView view,
  2. GPUTextureView? resolveTarget,
  3. dynamic clearValue,
  4. required GPULoadOp loadOp,
  5. required GPUStoreOp storeOp,
})

Implementation

factory GPURenderPassColorAttachment(
        {required GPUTextureView view,
        GPUTextureView? resolveTarget,
        dynamic clearValue,
        required GPULoadOp loadOp,
        required GPUStoreOp storeOp}) =>
    GPURenderPassColorAttachment._(
        view: view,
        resolveTarget: resolveTarget ?? undefined,
        clearValue: clearValue ?? undefined,
        loadOp: loadOp.value,
        storeOp: storeOp.value);