diff options
| author | Simon Kallweit <64953474+skallweitNV@users.noreply.github.com> | 2024-09-19 17:16:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-19 23:16:48 +0800 |
| commit | 3861be7ce5bd3ffc1bc60f2c3f7f41647145d575 (patch) | |
| tree | b473120fa3745c6b33f2d5f7e3df17b45a6412be /tools/render-test/shader-renderer-util.h | |
| parent | fe71eafcb6e11a420ab537f257e6b8971d31d9de (diff) | |
refactor render test to use latest slang-rhi (#5119)
* refactor render test to use latest slang-rhi
* update slang-rhi
* update slang-rhi
* update slang-rhi
* update slang-rhi
Diffstat (limited to 'tools/render-test/shader-renderer-util.h')
| -rw-r--r-- | tools/render-test/shader-renderer-util.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/render-test/shader-renderer-util.h b/tools/render-test/shader-renderer-util.h index 188562fa8..8d0075f3f 100644 --- a/tools/render-test/shader-renderer-util.h +++ b/tools/render-test/shader-renderer-util.h @@ -8,33 +8,33 @@ namespace renderer_test { using namespace Slang; -ComPtr<ISamplerState> _createSamplerState(IDevice* device, const InputSamplerDesc& srcDesc); +ComPtr<ISampler> _createSampler(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( + /// Generate a texture using the InputTextureDesc and construct a Texture using the Renderer with the contents + static Slang::Result generateTexture( const InputTextureDesc& inputDesc, ResourceState defaultState, IDevice* device, - ComPtr<ITextureResource>& textureOut); + ComPtr<ITexture>& textureOut); /// Create texture resource using inputDesc, and texData to describe format, and contents - static Slang::Result createTextureResource( + static Slang::Result createTexture( const InputTextureDesc& inputDesc, const TextureData& texData, ResourceState defaultState, IDevice* device, - ComPtr<ITextureResource>& textureOut); + ComPtr<ITexture>& textureOut); /// Create the BufferResource using the renderer from the contents of inputDesc - static Slang::Result createBufferResource( + static Slang::Result createBuffer( const InputBufferDesc& inputDesc, size_t bufferSize, const void* initData, IDevice* device, - ComPtr<IBufferResource>& bufferOut); + ComPtr<IBuffer>& bufferOut); }; } // renderer_test |
