From 5a86cd4880f8f086631352cb5d67d60c58c087f4 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 18 Jun 2020 11:38:30 -0400 Subject: Improvements around C++ code generation (#1396) * * Remove UniformState and UniformEntryPointParams types * Put all output C++ source in an anonymous namespace * If SLANG_PRELUDE_NAMESPACE is set, make what it defines available in generated file. * Fix signature issue in performance-profile.slang * Context -> KernelContext to avoid ambiguity. * Fix issues around dynamic dispatch and anonymous namespace. * Fix typo. --- tests/compute/performance-profile.slang | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/compute/performance-profile.slang b/tests/compute/performance-profile.slang index bf67a4478..22f73e075 100644 --- a/tests/compute/performance-profile.slang +++ b/tests/compute/performance-profile.slang @@ -44,8 +44,9 @@ static void _calc(const RWStructuredBuffer& buf, int start, int end) } SLANG_PRELUDE_EXPORT -void computeMain(ComputeVaryingInput* varyingInput, UniformEntryPointParams* params, LocalUniformState* uniformState) +void computeMain(ComputeVaryingInput* varyingInput, void* inParams, void* inUniformState) { + LocalUniformState* uniformState = (LocalUniformState*)inUniformState; _calc(uniformState->outputBuffer_0, varyingInput->startGroupID.x * 16, varyingInput->endGroupID.x * 16); } -- cgit v1.2.3