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
ConsumeStructuredBuffer and AppendStructuredBuffer do not map to any valid buffer on Vulkan. I am not sure if this should be supported by DXC at all. Although, throwing an error mentioning this would be nice. These buffers do not exist in Dx12 either.
We currently do support compiling {Append|Consume}StructuredBuffer.
I have found the root cause to be a corner case since the result of src.Consume() is passed directly to Append. Since these are intrinsic methods, they are treated with custom code in the compiler. I have a fix coming up.
Thanks for the replies and sorry for the wrong information. You are right about it (since shader model 5 supports it, dx12 should support it as well) but I am not aware of any GLSL structs mapping to them. On the C/C++ side, we can use storage buffer or an image for them, probably.
Activity
ehsannas commentedon Jun 6, 2018
Hi! Thanks for reporting this issue. I'm investigating and will provide details soon.
mmostajab commentedon Jun 6, 2018
ConsumeStructuredBuffer and AppendStructuredBuffer do not map to any valid buffer on Vulkan. I am not sure if this should be supported by DXC at all. Although, throwing an error mentioning this would be nice. These buffers do not exist in Dx12 either.
ehsannas commentedon Jun 6, 2018
We currently do support compiling {Append|Consume}StructuredBuffer.
I have found the root cause to be a corner case since the result of
src.Consume()is passed directly toAppend. Since these are intrinsic methods, they are treated with custom code in the compiler. I have a fix coming up.TiemoJung commentedon Jun 6, 2018
Morteza Mostajab (@mmostajab) I have to disagree, they certainly do exist in DX12. And mapping to Vulkan exists as Ehsan (@ehsannas) already stated.
mmostajab commentedon Jun 6, 2018
Thanks for the replies and sorry for the wrong information. You are right about it (since shader model 5 supports it, dx12 should support it as well) but I am not aware of any GLSL structs mapping to them. On the C/C++ side, we can use storage buffer or an image for them, probably.
TiemoJung commentedon Jun 6, 2018
DX12 has nativ support, on UAV create you supply a buffer that holds the counter.
On GL and Vulkan you are on your own.