projects
/
platform
/
upstream
/
Vulkan-LoaderAndValidationLayers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad3e02e
)
tests: Fix VKTriangleTest to set the usage flags correctly on buffer.
author
Chris Forbes
<chrisforbes@google.com>
Fri, 16 Sep 2016 02:13:53 +0000
(14:13 +1200)
committer
Chris Forbes
<chrisforbes@google.com>
Sun, 18 Sep 2016 20:54:42 +0000
(08:54 +1200)
By default, you get transfer_src|transfer_dst.
Signed-off-by: Chris Forbes <chrisforbes@google.com>
tests/layer_validation_tests.cpp
patch
|
blob
|
history
diff --git
a/tests/layer_validation_tests.cpp
b/tests/layer_validation_tests.cpp
index
eff0166
..
341f557
100644
(file)
--- a/
tests/layer_validation_tests.cpp
+++ b/
tests/layer_validation_tests.cpp
@@
-383,7
+383,8
@@
void VkLayerTest::VKTriangleTest(const char *vertShaderText, const char *fragSha
ASSERT_NO_FATAL_FAILURE(InitViewport());
- VkConstantBufferObj constantBuffer(m_device, bufSize * 2, sizeof(float), (const void *)&data);
+ VkConstantBufferObj constantBuffer(m_device, bufSize * 2, sizeof(float), (const void *)&data,
+ VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT);
VkShaderObj vs(m_device, vertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this);
VkShaderObj ps(m_device, fragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this);