From 8b67c7b3fc163156a02a40430f7038ab2f199924 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 29 May 2018 16:48:04 -0400 Subject: Feature/vulkan texture (#579) * First pass at support for textures in vulkan. * Binding state has first pass support for VkImageView VkSampler. * Split out _calcImageViewType * Fix bug in debug build around constant buffer being added but not part of the binding description for the test. * Offset recalculated for vk texture construction just store the texture size for each mip level. * When outputing a vector type with a size of 1 in GLSL, it needs to be output as the underlying type. For example vector should be output as float in GLSL. * Vulkan render-test produces right output for the test tests/compute/textureSamplingTest.slang -slang -gcompute -o tests/compute/textureSamplingTest.slang.actual.txt -vk * Small improvement around xml encoding a string. * More generalized test synthesis. * Fix image usage flags for Vulkan. * Improvements to what gets synthesized vulkan tests. * Do transition on all mip levels. * Fixing problems appearing from vulkan debug layer. * Disable Vulkan synthesized tests for now. --- tools/render-test/render-gl.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tools/render-test/render-gl.cpp') diff --git a/tools/render-test/render-gl.cpp b/tools/render-test/render-gl.cpp index 2c4ac9ea0..88537583b 100644 --- a/tools/render-test/render-gl.cpp +++ b/tools/render-test/render-gl.cpp @@ -762,11 +762,7 @@ static GLenum _calcTarget(Resource::Usage usage) BufferResource* GLRenderer::createBufferResource(Resource::Usage initialUsage, const BufferResource::Desc& descIn, const void* initData) { BufferResource::Desc desc(descIn); - - if (desc.bindFlags == 0) - { - desc.bindFlags = Resource::s_requiredBinding[int(initialUsage)]; - } + desc.setDefaults(initialUsage); const GLenum target = _calcTarget(initialUsage); // TODO: should derive from desc... -- cgit v1.2.3