diff options
Diffstat (limited to 'tools/render-test/cpu-compute-util.h')
| -rw-r--r-- | tools/render-test/cpu-compute-util.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/render-test/cpu-compute-util.h b/tools/render-test/cpu-compute-util.h index 179985f6f..21c40ba43 100644 --- a/tools/render-test/cpu-compute-util.h +++ b/tools/render-test/cpu-compute-util.h @@ -1,10 +1,11 @@ #ifndef CPU_COMPUTE_UTIL_H #define CPU_COMPUTE_UTIL_H -#include "cpu-memory-binding.h" #include "slang-support.h" #include "options.h" +#include "bind-location.h" + #include "../../source/core/slang-smart-pointer.h" namespace renderer_test { @@ -28,11 +29,11 @@ struct CPUComputeUtil struct Context { /// Holds the binding information - CPUMemoryBinding binding; + BindSet m_bindSet; + CPULikeBindRoot m_bindRoot; + /// Buffers are held in same order as entries in layout (useful for dumping out bindings) - List<CPUMemoryBinding::Buffer> buffers; - /// Holds the resources created (in calcBindings) - List<RefPtr<Resource> > m_resources; + List<BindSet::Value*> m_buffers; }; struct ExecuteInfo @@ -53,12 +54,12 @@ struct CPUComputeUtil static SlangResult checkStyleConsistency(ISlangSharedLibrary* sharedLib, const uint32_t dispatchSize[3], const ShaderCompilerUtil::OutputAndLayout& compilationAndLayout); static SlangResult calcBindings(const ShaderCompilerUtil::OutputAndLayout& compilationAndLayout, Context& outContext); - + static SlangResult calcExecuteInfo(ExecuteStyle style, ISlangSharedLibrary* sharedLib, const uint32_t dispatchSize[3], const ShaderCompilerUtil::OutputAndLayout& compilationAndLayout, Context& context, ExecuteInfo& out); static SlangResult execute(const ExecuteInfo& info); - static SlangResult writeBindings(const ShaderInputLayout& layout, const List<CPUMemoryBinding::Buffer>& buffers, const Slang::String& fileName); + static SlangResult writeBindings(const ShaderInputLayout& layout, const List<BindSet::Value*>& buffers, const Slang::String& fileName); }; |
