diff options
Diffstat (limited to 'tools/render-test/shader-renderer-util.h')
| -rw-r--r-- | tools/render-test/shader-renderer-util.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/tools/render-test/shader-renderer-util.h b/tools/render-test/shader-renderer-util.h index 9d583331f..8771d21f6 100644 --- a/tools/render-test/shader-renderer-util.h +++ b/tools/render-test/shader-renderer-util.h @@ -8,45 +8,6 @@ namespace renderer_test { using namespace Slang; -struct BindingStateImpl : public Slang::RefObject -{ - /// A register set consists of one or more contiguous indices. - /// To be valid index >= 0 and size >= 1 - struct RegisterRange - { - /// True if contains valid contents - bool isValid() const { return size > 0; } - /// True if valid single value - bool isSingle() const { return size == 1; } - /// Get as a single index (must be at least one index) - int getSingleIndex() const { return (size == 1) ? index : -1; } - /// Return the first index - int getFirstIndex() const { return (size > 0) ? index : -1; } - /// True if contains register index - bool hasRegister(int registerIndex) const { return registerIndex >= index && registerIndex < index + size; } - - static RegisterRange makeInvalid() { return RegisterRange{ -1, 0 }; } - static RegisterRange makeSingle(int index) { return RegisterRange{ int16_t(index), 1 }; } - static RegisterRange makeRange(int index, int size) { return RegisterRange{ int16_t(index), uint16_t(size) }; } - - int16_t index; ///< The base index - uint16_t size; ///< The amount of register indices - }; - - void apply(ICommandEncoder* encoder, PipelineType pipelineType); - - struct OutputBinding - { - ComPtr<IResource> resource; - Slang::UInt entryIndex; - }; - List<OutputBinding> outputBindings; - - ComPtr<IPipelineLayout> pipelineLayout; - ComPtr<IDescriptorSet> descriptorSet; - int m_numRenderTargets = 1; -}; - ComPtr<ISamplerState> _createSamplerState(IDevice* device, const InputSamplerDesc& srcDesc); /// Utility class containing functions that construct items on the renderer using the ShaderInputLayout representation @@ -75,13 +36,6 @@ struct ShaderRendererUtil const void* initData, IDevice* device, ComPtr<IBufferResource>& bufferOut); - - /// Create BindingState::Desc from the contents of layout - static Slang::Result createBindingState( - const ShaderInputLayout& layout, - IDevice* device, - IBufferResource* addedConstantBuffer, - BindingStateImpl** outBindingState); }; } // renderer_test |
