summaryrefslogtreecommitdiff
path: root/tools/render-test/shader-input-layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/render-test/shader-input-layout.h')
-rw-r--r--tools/render-test/shader-input-layout.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/tools/render-test/shader-input-layout.h b/tools/render-test/shader-input-layout.h
index 253f065f6..01ef5c443 100644
--- a/tools/render-test/shader-input-layout.h
+++ b/tools/render-test/shader-input-layout.h
@@ -6,9 +6,6 @@
#include "source/core/slang-writer.h"
-
-#include "bind-location.h"
-
#include "slang-gfx.h"
namespace renderer_test {
@@ -127,23 +124,8 @@ public:
void parse(Slang::RandomGenerator* rand, const char* source);
- /// Adds to bind set resources as defined in entries.
- /// Note: No actual resources are created on a device, these are just the 'Resource' structures that are held on the BindSet
- /// For buffers, the Resources will be setup with the contents of the entry.
- /// That if a resource is created that maps to an entry, the m_userData member of Resource will be set to it's index
- static SlangResult addBindSetValues(const Slang::List<ShaderInputLayoutEntry>& entries, const Slang::String& sourcePath, Slang::WriterHelper outError, BindRoot& bindRoot);
-
- /// Put into outBuffer the value buffers that were set via addbindSetValues (which will set m_userIndex to be the entries index)
- static void getValueBuffers(const Slang::List<ShaderInputLayoutEntry>& entries, const BindSet& bindSet, Slang::List<BindSet::Value*>& outBuffers);
-
/// Writes a binding, if bindRoot is set, will try to honor the underlying type when outputting. If not will dump as uint32_t hex.
- static SlangResult writeBinding(BindRoot* bindRoot, const ShaderInputLayoutEntry& entry, const void* data, size_t sizeInBytes, Slang::WriterHelper writer);
-
- /// Write all bindings, using data from buffers
- static SlangResult writeBindings(BindRoot* bindRoot, const ShaderInputLayout& layout, const Slang::List<BindSet::Value*>& buffers, Slang::WriterHelper writer);
-
- /// Write bindings from values in memory from buffers
- static SlangResult writeBindings(BindRoot* bindRoot, const ShaderInputLayout& layout, const Slang::List<BindSet::Value*>& buffers, const Slang::String& fileName);
+ static SlangResult writeBinding(const ShaderInputLayoutEntry& entry, slang::TypeLayoutReflection* typeLayout, const void* data, size_t sizeInBytes, Slang::WriterHelper writer);
};
void generateTextureDataRGB8(TextureData& output, const InputTextureDesc& desc);