Redirecting to https://godbolt.nsc.devsh.eu/#g:!((g:!((g:!((h:codeEditor,i:(filename:'1',fontScale:14,fontUsePx:'0',j:1,lang:hlsl,selection:(endColumn:75,endLineNumber:47,positionColumn:75,positionLineNumber:47,selectionStartColumn:75,selectionStartLineNumber:47,startColumn:75,startLineNumber:47),source:'%23include+%22nbl/builtin/hlsl/glsl_compat/core.hlsl%22%0A%23include+%22nbl/builtin/hlsl/bda/__ptr.hlsl%22%0A%23define+_NBL_HLSL_WORKGROUP_SIZE_+128%0A%0A%0Anamespace+nbl%0A%7B%0Anamespace+hlsl%0A%7B%0A//+declare+SPIR-V+type+for+uint8_t%0Anamespace+spirv%0A%7B%0Ausing+uint8_t+%3D+vk::SpirvType%3C%0A++++spv::OpTypeInt,%0A++++1,1,+//+size+and+alignment%0A++++vk::Literal%3Cvk::integral_constant%3Cuint,8%3E+%3E,+//+bits%0A++++vk::Literal%3Cvk::integral_constant%3Cuint,0%3E+%3E+//+unsigned%0A%3E%3B%0A%7D%0A%7D%0A%7D%0A%0A//+specialize+our+type_traits+for+the+new+type+(I+blame+lack+of+%60alignof%60+in+DXC+for+this)%0ANBL_REGISTER_OBJ_TYPE(nbl::hlsl::spirv::uint8_t,1)%3B%0A%0A//+declare+BDA+pointer+for+uint8_t,+this+needs+a+special+capability%0A//+BUG:+the+%60%5B%5Bvk::ext_capability(spv::CapabilityStorageBuffer8BitAccess)%5D%5D%60+doesn!'t+work+on+just+any+type+alias%0Ausing+p_uint8_t+%5B%5Bvk::ext_capability(spv::CapabilityStorageBuffer8BitAccess)%5D%5D+%3D+nbl::hlsl::bda::__ptr%3Cnbl::hlsl::spirv::uint8_t%3E%3B%0A%0Astruct+PushConstantData%0A%7B%0A%09p_uint8_t+inputAddress%3B%0A%09p_uint8_t+outputAddress%3B%0A%7D%3B%0A%5B%5Bvk::push_constant%5D%5D+PushConstantData+pc%3B%0A%0A%0A//+Users+MUST+define+this+method+for+FFT+to+work%0Auint32_t3+nbl::hlsl::glsl::gl_WorkGroupSize()+%7B+return+uint32_t3(_NBL_HLSL_WORKGROUP_SIZE_,+1,+1)%3B+%7D%0A%0A%5B%5Bvk::ext_capability(spv::CapabilityStorageBuffer8BitAccess)%5D%5D+///+I+REALLY+SHOULDN!'t+PUT+THIS+HERE%0A%5Bnumthreads(_NBL_HLSL_WORKGROUP_SIZE_,1,1)%5D%0Avoid+main()%0A%7B%0A++++uint32_t+ix+%3D+nbl::hlsl::glsl::gl_GlobalInvocationID().x%3B%0A++++//+you+can+blame+the+lack+of+references+and+more+operator+overloads+(that+depend+on+const+references)+for+the+weird+syntax+here%0A++++nbl::hlsl::spirv::uint8_t+value+%3D+(pc.inputAddress%2Bix).deref().load()%3B%0A++++(pc.outputAddress%2Bix).deref().store(value)%3B%0A%7D%0A'),l:'5',n:'0',o:'HLSL+source+%231',t:'0')),k:50,l:'4',n:'0',o:'',s:0,t:'0'),(g:!((g:!((h:compiler,i:(compiler:nsc_release_upstream,filters:(b:'0',binary:'1',binaryObject:'1',commentOnly:'0',debugCalls:'1',demangle:'0',directives:'0',execute:'1',intel:'0',libraryCode:'0',trim:'1'),flagsViewOpen:'1',fontScale:14,fontUsePx:'0',j:1,lang:hlsl,libs:!(),options:'-T+cs_6_7+-E+main+-O3',overrides:!(),selection:(endColumn:1,endLineNumber:1,positionColumn:1,positionLineNumber:1,selectionStartColumn:1,selectionStartLineNumber:1,startColumn:1,startLineNumber:1),source:1),l:'5',n:'0',o:'+NSC+(Release)+(Editor+%231)',t:'0')),k:50,l:'4',m:35.90604026845637,n:'0',o:'',s:0,t:'0'),(g:!((h:output,i:(compilerName:'NSC+(Release)',editorid:1,fontScale:14,fontUsePx:'0',j:1,wrap:'1'),l:'5',n:'0',o:'Output+of+NSC+(Release)+(Compiler+%231)',t:'0')),header:(),l:'4',m:64.09395973154362,n:'0',o:'',s:0,t:'0')),k:50,l:'3',n:'0',o:'',t:'0')),l:'2',n:'0',o:'',t:'0')),version:4.