From 3d5546600fb4c585b6f6f6dcdb5e122698d1225e Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 5 Mar 2019 14:53:44 -0500 Subject: Hotfix/texture2d gather (#876) * First pass test to see if GatherRed works. * Add support for generating R_Float32 textures. * Set default texture format. * * Alter the texture2d-gather to work with a R_Float32 texture * Add support for scalar Texture2d types with GatherXXX in stdlib * Remove some left over commented out test code from texture2d-gather.hlsl --- tools/render-test/shader-input-layout.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools/render-test/shader-input-layout.h') diff --git a/tools/render-test/shader-input-layout.h b/tools/render-test/shader-input-layout.h index 1044a6eea..d9188fadd 100644 --- a/tools/render-test/shader-input-layout.h +++ b/tools/render-test/shader-input-layout.h @@ -27,6 +27,9 @@ struct InputTextureDesc bool isDepthTexture = false; bool isRWTexture = false; int size = 4; + + Format format = Format::RGBA_Unorm_UInt8; + InputTextureContent content = InputTextureContent::One; }; @@ -80,7 +83,9 @@ public: void Parse(const char * source); }; -void generateTextureData(TextureData & output, const InputTextureDesc & desc); +void generateTextureDataRGB8(TextureData& output, const InputTextureDesc& desc); +void generateTextureData(TextureData& output, const InputTextureDesc& desc); + } // namespace render_test -- cgit v1.2.3