You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can value of visibility attribute in GPUBindGroupLayoutBinding be NONE ? #405
In current spec, value of visibility attribute in GPUBindGroupLayoutBinding could be ShaderStage NONE, which means that the resource cannot be access by any shader stage.
Is there any use cases cover this usage?
If not, shall we request that value of visibility attribute cannot be NONE in GPUBindGroupLayoutBinding if it is used to create a GPUBindGroupLayout?
Thanks for remembering that. We should be consistent between the two. Also, I think that the argument I made there in favor of keeping NONE (or at least allowing 0) applies here too.
I'm not sure for D3D12, but at least Vulkan should support it. And even calls it out in the spec:
VUID-VkDescriptorSetLayoutBinding-descriptorType-01510
If descriptorType is VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT and descriptorCount is not 0, then stageFlags must be 0 or VK_SHADER_STAGE_FRAGMENT_BIT
Activity
kvark commentedon Aug 12, 2019
I don't see a use case that would involve
NONEthere, so I agree that we should require it to have some bits.litherum commentedon Aug 16, 2019
See also: #193
kainino0x commentedon Aug 16, 2019
Thanks for remembering that. We should be consistent between the two. Also, I think that the argument I made there in favor of keeping NONE (or at least allowing 0) applies here too.
beaufortfrancois commentedon Oct 8, 2019
I think we can close this issue now since #461 has been merged
kvark commentedon Oct 8, 2019
@beaufortfrancois
NONEis gone but 0 can still be passed in, which is what this issue is about.beaufortfrancois commentedon Oct 8, 2019
Thank you @kvark.
I've updated CTS with this information: gpuweb/cts#58
Kangz commentedon Oct 18, 2021
Consensus: Allow NONE
kvark commentedon Nov 24, 2021
Do native APIs allow this? Specifically, Vulkan and D3D12?
If we have to work around this, I'd rather just forbid it instead.
Kangz commentedon Dec 7, 2021
I'm not sure for D3D12, but at least Vulkan should support it. And even calls it out in the spec:
kainino0x commentedon Dec 8, 2021
Isn't the workaround trivial anyway? Just add an arbitrary bit if it's 0.
Kangz commentedon Dec 14, 2021
Unless someone objects, I think we can close and keep the spec as is: keep allowing
NONE.kvark commentedon Dec 14, 2021
Confirmed it's fine for Vulkan. And I believe it's fine for Metal argbuf and non-argbuf paths as well.
It's not that simple. Adding a bit there would make it count towards the per-stage limits.
kvark commentedon Dec 14, 2021
Confirmed it's fine on DX12 as well. So we can have NONE for free on all backends.
Kangz commentedon Dec 14, 2021
Great!
Add something missed in gpuweb#394 because I forgot to save (gpuweb#405)