diff options
| author | Mike Stroyan <mike@LunarG.com> | 2015-06-15 14:21:03 -0600 |
|---|---|---|
| committer | Mike Stroyan <mike@LunarG.com> | 2015-06-16 15:55:04 -0600 |
| commit | 8b89e07e473878cd8aacb4e714b538d63f61c2f9 (patch) | |
| tree | c932809de9c587acae8aca8be2026d4900d7a053 | |
| parent | b46779ee1efc0fa1ab57a00a7fb1298add08a3e1 (diff) | |
| download | usermoji-8b89e07e473878cd8aacb4e714b538d63f61c2f9.tar.xz | |
demos: cube: use RGBA texture format uniformly
Use of VK_FORMAT_R8G8B8A8_UNORM image produced swizzled texture sampling.
| -rw-r--r-- | demos/cube.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/cube.c b/demos/cube.c index 45db5526..7b6cbb71 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -864,7 +864,7 @@ static void demo_prepare_texture_image(struct demo *demo, VkImageUsageFlags usage, VkFlags mem_props) { - const VkFormat tex_format = VK_FORMAT_B8G8R8A8_UNORM; + const VkFormat tex_format = VK_FORMAT_R8G8B8A8_UNORM; int32_t tex_width; int32_t tex_height; VkResult U_ASSERT_ONLY err; @@ -1030,8 +1030,8 @@ static void demo_prepare_textures(struct demo *demo) demo_destroy_texture_image(demo, &staging_texture); } else { - /* Can't support VK_FORMAT_B8G8R8A8_UNORM !? */ - assert(!"No support for tB8G8R8A8_UNORM as texture image format"); + /* Can't support VK_FORMAT_R8G8B8A8_UNORM !? */ + assert(!"No support for R8G8B8A8_UNORM as texture image format"); } const VkSamplerCreateInfo sampler = { |
