From 91e98efca508ea4455f415b9157452654476e1bc Mon Sep 17 00:00:00 2001 From: Kai Yao Date: Fri, 8 Oct 2021 14:51:14 -0700 Subject: Basic VK buffer barrier test (#1967) * Allow specifying entry point name in gfx unit test util * Add buffer barrier test --- tools/gfx-unit-test/gfx-test-util.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/gfx-unit-test/gfx-test-util.cpp') 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& outShaderProgram, const char* shaderModuleName, + const char* entryPointName, slang::ProgramLayout*& slangReflection) { Slang::ComPtr slangSession; @@ -29,10 +30,9 @@ namespace gfx_test if (!module) return SLANG_FAIL; - char const* computeEntryPointName = "computeMain"; ComPtr computeEntryPoint; SLANG_RETURN_ON_FAIL( - module->findEntryPointByName(computeEntryPointName, computeEntryPoint.writeRef())); + module->findEntryPointByName(entryPointName, computeEntryPoint.writeRef())); Slang::List componentTypes; componentTypes.add(module); -- cgit v1.2.3