From 9a5672d7b8a155117a2c3f8375e3b8a5b43d91b7 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sat, 24 Apr 2021 00:17:43 -0700 Subject: 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. --- tools/render-test/shader-renderer-util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 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 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& textureOut); @@ -24,7 +24,7 @@ struct ShaderRendererUtil static Slang::Result createTextureResource( const InputTextureDesc& inputDesc, const TextureData& texData, - int bindFlags, + ResourceState defaultState, IDevice* device, ComPtr& textureOut); -- cgit v1.2.3