From b5b3a8d36c09631cbd4cf236c0280a314436748d Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 3 Sep 2019 14:36:55 -0400 Subject: CPU uniform entry point params (#1041) * * Made entry point parameters a separate entry point * Made CPUMemoryBinding work with entry point parameters/initialize constant buffers * Added isCPUOnly to bindings, because entry point parameters do not layout like constant buffer * entry-point-uniform.slang works on CPU * EntryPointParams -> UniformEntryPointParams Updated CPU documentation. * Update cpu-target.md to removed completed issues. * Only allocate CPU buffers if the size is > 0. Small update to cpu-target doc. --- tools/render-test/shader-input-layout.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/render-test/shader-input-layout.h') diff --git a/tools/render-test/shader-input-layout.h b/tools/render-test/shader-input-layout.h index 0f11c4ad7..2a58bfd2c 100644 --- a/tools/render-test/shader-input-layout.h +++ b/tools/render-test/shader-input-layout.h @@ -59,6 +59,7 @@ public: InputBufferDesc bufferDesc; InputSamplerDesc samplerDesc; bool isOutput = false; + bool isCPUOnly = false; int hlslBinding = -1; Slang::List glslBinding; @@ -85,7 +86,9 @@ public: Slang::Index findEntryIndexByName(const Slang::String& name) const; - void parse(const char * source); + void updateForTarget(SlangCompileTarget target); + + void parse(const char* source); }; void generateTextureDataRGB8(TextureData& output, const InputTextureDesc& desc); -- cgit v1.2.3