diff options
| author | Kai Yao <kyao@nvidia.com> | 2021-10-08 14:51:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-08 14:51:14 -0700 |
| commit | 91e98efca508ea4455f415b9157452654476e1bc (patch) | |
| tree | 28c87d75bb4994826963ad6d448a654aba7e167c /tools/gfx-unit-test/gfx-test-util.cpp | |
| parent | d541489efa698f726a1f450c0c400591835b3982 (diff) | |
Basic VK buffer barrier test (#1967)
* Allow specifying entry point name in gfx unit test util
* Add buffer barrier test
Diffstat (limited to 'tools/gfx-unit-test/gfx-test-util.cpp')
| -rw-r--r-- | tools/gfx-unit-test/gfx-test-util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/gfx-unit-test/gfx-test-util.cpp b/tools/gfx-unit-test/gfx-test-util.cpp index d01fcdca3..1b23047a1 100644 --- a/tools/gfx-unit-test/gfx-test-util.cpp +++ b/tools/gfx-unit-test/gfx-test-util.cpp @@ -15,10 +15,11 @@ namespace gfx_test } } - Slang::Result loadShaderProgram( + Slang::Result loadComputeProgram( gfx::IDevice* device, Slang::ComPtr<gfx::IShaderProgram>& outShaderProgram, const char* shaderModuleName, + const char* entryPointName, slang::ProgramLayout*& slangReflection) { Slang::ComPtr<slang::ISession> slangSession; @@ -29,10 +30,9 @@ namespace gfx_test if (!module) return SLANG_FAIL; - char const* computeEntryPointName = "computeMain"; ComPtr<slang::IEntryPoint> computeEntryPoint; SLANG_RETURN_ON_FAIL( - module->findEntryPointByName(computeEntryPointName, computeEntryPoint.writeRef())); + module->findEntryPointByName(entryPointName, computeEntryPoint.writeRef())); Slang::List<slang::IComponentType*> componentTypes; componentTypes.add(module); |
