From 6ef4054f8a8aea4ec61481057fa7e16aaecde6d7 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 10 Mar 2021 10:58:15 -0800 Subject: Swapchain resize and rename to `IDevice` (#1741) * Swapchain resize * Fix. --- tools/render-test/shader-renderer-util.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'tools/render-test/shader-renderer-util.h') diff --git a/tools/render-test/shader-renderer-util.h b/tools/render-test/shader-renderer-util.h index b79403bb4..ecb8fc8bb 100644 --- a/tools/render-test/shader-renderer-util.h +++ b/tools/render-test/shader-renderer-util.h @@ -47,22 +47,24 @@ struct BindingStateImpl : public Slang::RefObject int m_numRenderTargets = 1; }; -ComPtr _createSamplerState( - IRenderer* renderer, - const InputSamplerDesc& srcDesc); +ComPtr _createSamplerState(IDevice* device, const InputSamplerDesc& srcDesc); /// Utility class containing functions that construct items on the renderer using the ShaderInputLayout representation struct ShaderRendererUtil { /// Generate a texture using the InputTextureDesc and construct a TextureResource using the Renderer with the contents - static Slang::Result generateTextureResource(const InputTextureDesc& inputDesc, int bindFlags, IRenderer* renderer, ComPtr& textureOut); + static Slang::Result generateTextureResource( + const InputTextureDesc& inputDesc, + int bindFlags, + IDevice* device, + ComPtr& textureOut); /// Create texture resource using inputDesc, and texData to describe format, and contents static Slang::Result createTextureResource( const InputTextureDesc& inputDesc, const TextureData& texData, int bindFlags, - IRenderer* renderer, + IDevice* device, ComPtr& textureOut); /// Create the BufferResource using the renderer from the contents of inputDesc @@ -71,13 +73,13 @@ struct ShaderRendererUtil bool isOutput, size_t bufferSize, const void* initData, - IRenderer* renderer, + IDevice* renderer, ComPtr& bufferOut); /// Create BindingState::Desc from the contents of layout static Slang::Result createBindingState( const ShaderInputLayout& layout, - IRenderer* renderer, + IDevice* renderer, IBufferResource* addedConstantBuffer, BindingStateImpl** outBindingState); }; -- cgit v1.2.3