diff options
| author | Yong He <yonghe@outlook.com> | 2021-04-24 00:17:43 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-24 00:17:43 -0700 |
| commit | 9a5672d7b8a155117a2c3f8375e3b8a5b43d91b7 (patch) | |
| tree | 9be3ea214ea735e41e8fdaef9824e84212a30cbb /tools/render-test/shader-renderer-util.h | |
| parent | 697017e6fae8c252638abc298ec1556de2e41314 (diff) | |
Remove resource `Usage` from `gfx` interface. (#1813)
* Fix `model-viewer` crash when using Vulkan.
Fixing an issue in shader object layout creation for to make sure a correct descriptor set layout is calculated for types that need an implicit constant buffer.
* Fix formatting.
* Fixes.
* Fix memory leak in vulkan.
* Remove resource `Usage` from `gfx` interface.
Diffstat (limited to 'tools/render-test/shader-renderer-util.h')
| -rw-r--r-- | tools/render-test/shader-renderer-util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/render-test/shader-renderer-util.h b/tools/render-test/shader-renderer-util.h index b4028fd06..1a1edf997 100644 --- a/tools/render-test/shader-renderer-util.h +++ b/tools/render-test/shader-renderer-util.h @@ -16,7 +16,7 @@ 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, + ResourceState defaultState, IDevice* device, ComPtr<ITextureResource>& textureOut); @@ -24,7 +24,7 @@ struct ShaderRendererUtil static Slang::Result createTextureResource( const InputTextureDesc& inputDesc, const TextureData& texData, - int bindFlags, + ResourceState defaultState, IDevice* device, ComPtr<ITextureResource>& textureOut); |
