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

Reconsider GPULoadOp "clear"/"zero" #1377

@kainino0x

Description

@kainino0x

It was decided in #283 not to duplicate the functionality of loadValue: [0, 0, 0, 0] with a loadValue: "zero" or similar.

However, in the time since then, I've seen numerous users trip up on this, using loadValue: "load" when it's not necessary, because doing the simpler thing seems like it should be the "better" thing.
Of course, [EDIT: if in the same command buffer or on a late-recording implementation] loadValue: "load" gets replaced with loadValue: [0, 0, 0, 0] if the render target happened to be in an uninitialized state before the render pass, so in many cases it's not actually a pessimization. But I think we should make the "fast" option more accessible.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions