这是indexloc提供的服务,不要输入任何密码
Skip to content

Refactor API for load/store OP and read-only attachments #2131

@kvark

Description

@kvark

Spawned from #2062 (comment)

Our current API for declaring operations and read-only properties is not ideal:

    required (GPULoadOp or float) depthLoadValue;
    required GPUStoreOp depthStoreOp;
    boolean depthReadOnly = false;

Problems with it:

  1. If my attachment doesn't have a depth component, I'm still forced to specify both load and store ops. The store op has to be "store" even though there can be no store performed. Same for stencil.
  2. If the depth aspect is read-only, I'm still forced to specify the store operation as "store". Same for stencil.

Diagram for understanding the data and validation:
WebGPUAttachmentOps

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions