summaryrefslogtreecommitdiff
path: root/tools/gfx-unit-test/gfx-test-util.h
diff options
context:
space:
mode:
authorKai Yao <kyao@nvidia.com>2021-10-08 14:51:14 -0700
committerGitHub <noreply@github.com>2021-10-08 14:51:14 -0700
commit91e98efca508ea4455f415b9157452654476e1bc (patch)
tree28c87d75bb4994826963ad6d448a654aba7e167c /tools/gfx-unit-test/gfx-test-util.h
parentd541489efa698f726a1f450c0c400591835b3982 (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.h')
-rw-r--r--tools/gfx-unit-test/gfx-test-util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gfx-unit-test/gfx-test-util.h b/tools/gfx-unit-test/gfx-test-util.h
index b7e402abc..c7db19394 100644
--- a/tools/gfx-unit-test/gfx-test-util.h
+++ b/tools/gfx-unit-test/gfx-test-util.h
@@ -9,10 +9,11 @@ namespace gfx_test
void diagnoseIfNeeded(ISlangWriter* diagnosticWriter, slang::IBlob* diagnosticsBlob);
/// Loads a compute shader module and produces a `gfx::IShaderProgram`.
- Slang::Result loadShaderProgram(
+ Slang::Result loadComputeProgram(
gfx::IDevice* device,
Slang::ComPtr<gfx::IShaderProgram>& outShaderProgram,
const char* shaderModuleName,
+ const char* entryPointName,
slang::ProgramLayout*& slangReflection);
/// Reads back the content of `buffer` and compares it against `expectedResult`.