Gpuweb: Reconsider the name `OUTPUT_ATTACHMENT`

Created on 16 Oct 2020  路  4Comments  路  Source: gpuweb/gpuweb

OUTPUT_ATTACHMENT was an artefact of the initial import+rewrite of NXT's interface because NXT tried to have Vulkan-like render passes with sub-passes. It doesn't seem like WebGPU will have INPUT_ATTACHMENT in the near future, so maybe OUTPUT_ATTACHMENT should be renamed to RENDER_TARGET or an other name open to bikeshedding?

proposal

Most helpful comment

Resolution: "Resounding silent agreement"

All 4 comments

I think RENDER_TARGET is cleaner. It does however has a downside that generally people assume "color" targets. OUTPUT_ATTACHMENT doesn't have this problem, and it matches with the current names of other structs, such as GPURenderPassColorAttachmentDescriptor.

That's a good point, maybe it could be RENDER_ATTACHMENT?

Resolution: "Resounding silent agreement"

Fixed by #1168

Was this page helpful?
0 / 5 - 0 ratings

Related issues

litherum picture litherum  路  6Comments

litherum picture litherum  路  6Comments

yukunxie picture yukunxie  路  6Comments

kvark picture kvark  路  5Comments

kainino0x picture kainino0x  路  3Comments