From 5eb835f0332868fd56ac14ce7560e0ae9cfafec9 Mon Sep 17 00:00:00 2001 From: David Siher <32305650+dsiher@users.noreply.github.com> Date: Thu, 3 Feb 2022 19:16:54 -0800 Subject: Fixed naming conflicts in heterogeneous-hello-world (#2114) * Fixed naming conflicts in heterogeneous-hello-world Added 3 new modifiers (`__unmangled`, `__exportDirectly`, `__externLib`) `__unmangled` causes mangleName() to return the normal name of the decl. `__exportDirectly` changes parent decl name concatenation behavior to use "::" instead of "." (for Name Hint) and emits the name hint when it exists, otherwise it emits the mangled name. `__externLib` stops Slang from emitting the corresponding struct. Also made necessary changes to heterogeneous-hello-world so that this new functionality is shown off. * Undo unintentional formatting changes Co-authored-by: Yong He --- prelude/slang-cpp-prelude.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'prelude') diff --git a/prelude/slang-cpp-prelude.h b/prelude/slang-cpp-prelude.h index b1b29284c..612f9ec9f 100644 --- a/prelude/slang-cpp-prelude.h +++ b/prelude/slang-cpp-prelude.h @@ -132,18 +132,4 @@ Any compilers not detected by the above logic are now now explicitly zeroed out. # define SLANG_UNROLL #endif -struct gfx_Device_0; -struct gfx_BufferResource_0; -struct gfx_ShaderProgram_0; -struct gfx_ResourceView_0; -struct gfx_TransientResourceHeap_0; -struct gfx_PipelineState_0; - -gfx_ShaderProgram_0* loadShaderProgram_0(gfx_Device_0* _0, char* _1, char* _2); -gfx_TransientResourceHeap_0* buildTransientHeap_0(gfx_Device_0* _0); -gfx_PipelineState_0* buildPipelineState_0(gfx_Device_0* _0, gfx_ShaderProgram_0* _1); -gfx_ResourceView_0* createBufferView_0(gfx_Device_0* _0, gfx_BufferResource_0* _1); -void dispatchComputation_0(gfx_Device_0* _0, gfx_TransientResourceHeap_0* _1, gfx_PipelineState_0* _2, gfx_ResourceView_0* _3, uint32_t gridDimsX, uint32_t gridDimsY, uint32_t gridDimsZ); -gfx_BufferResource_0* unconvertBuffer_0(RWStructuredBuffer _0); - -#endif +#endif \ No newline at end of file -- cgit v1.2.3