diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-06-18 11:38:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-18 11:38:30 -0400 |
| commit | 5a86cd4880f8f086631352cb5d67d60c58c087f4 (patch) | |
| tree | 2f65acc5158f4c6632f299de6f4600f20b93c35a /tests/compute/performance-profile.slang | |
| parent | 31ae3467242995ab822a29c4148c2e86df2f1eb8 (diff) | |
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.
Diffstat (limited to 'tests/compute/performance-profile.slang')
| -rw-r--r-- | tests/compute/performance-profile.slang | 3 |
1 files changed, 2 insertions, 1 deletions
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<float>& 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); } |
