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:68,endLineNumber:10,positionColumn:68,positionLineNumber:10,selectionStartColumn:68,selectionStartLineNumber:10,startColumn:68,startLineNumber:10),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%0A//+TODO+declare+SPIR-V+type+for+uint8_t%0A%0A//+TODO+specialize+our+type_traits+for+the+new+type+(I+blame+lack+of+%60alignof%60+in+DXC+for+this)%0A%0A//+declare+BDA+pointer+for+uint8_t,+this+needs+a+special+capability%0Ausing+p_uint16_t+%5B%5Bvk::ext_capability(spv::CapabilityStorageBuffer8BitAccess)%5D%5D+%3D+nbl::hlsl::bda::__ptr%3Cuint16_t%3E%3B%0A%0Astruct+PushConstantData%0A%7B%0A%09p_uint16_t+inputAddress%3B%0A%09p_uint16_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%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++++uint16_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.