The below program compiles with fxc but fails with `error: Invalid operation on typed buffer` on dxc. ``` // RUN: dxc /Tcs_5_1 /DDX12 %s struct Foo { int a; int b; int c; int d; }; Buffer<Foo> inputs : register(t1); RWBuffer< int > g_Intensities : register(u1); groupshared Foo sharedData; #ifdef DX12 [RootSignature("DescriptorTable(UAV(u1, numDescriptors=1), SRV(t1), visibility=SHADER_VISIBILITY_ALL)")] #endif [ numthreads( 64, 2, 2 ) ] void main( uint GI : SV_GroupIndex) { sharedData = inputs[GI]; int rtn; InterlockedAdd(sharedData.d, g_Intensities[GI], rtn); g_Intensities[GI] = rtn + sharedData.d; } ```
Activity
dmpots commentedon Feb 3, 2017
Fixed by #43
[spirv] CodeGen for OpEntryPoint (microsoft#41)
[spirv] CodeGen for OpEntryPoint (microsoft#41)
Add writability to vk::BufferPointer pointees (microsoft#52)