From ca9f84510395a16b9bca506db0a5e9b46bc7a2a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Thu, 24 Jan 2019 12:25:11 -0800 Subject: [PATCH] Added sampler repeat test. --- examples/08-update/update.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/08-update/update.cpp b/examples/08-update/update.cpp index 093f9b66c..ef8085278 100644 --- a/examples/08-update/update.cpp +++ b/examples/08-update/update.cpp @@ -98,7 +98,7 @@ static const uint16_t s_cubeIndices[] = 21, 22, 23, }; BX_STATIC_ASSERT(BX_COUNTOF(s_cubeIndices) == 36); - + bx::Vec3 s_faceColors[] = { { 0.75f, 0.0f, 0.0f }, @@ -300,7 +300,7 @@ public: , BGFX_TEXTURE_COMPUTE_WRITE ); } - + { m_textureCube[3] = bgfx::createTextureCube( kTextureSide @@ -309,7 +309,7 @@ public: , bgfx::TextureFormat::RGBA8 , BGFX_TEXTURE_RT ); - + for (uint32_t ii = 0; ii < BX_COUNTOF(m_textureCubeFaceFb); ++ii) { bgfx::Attachment at; @@ -537,7 +537,7 @@ public: bgfx::setImage(0, m_textureCube[2], 0, bgfx::Access::Write); bgfx::dispatch(0, m_programCompute, kTextureSide/16, kTextureSide/16); } - + for (uint32_t ii = 0; ii < BX_COUNTOF(m_textureCubeFaceFb); ++ii) { bgfx::ViewId viewId = bgfx::ViewId(ii+2); @@ -653,7 +653,7 @@ public: bgfx::submit(1, m_program3d); } - for (uint32_t ii = 0; ii < 4; ++ii) + for (uint32_t ii = 0; ii < 5; ++ii) { bx::mtxTranslate(mtx, sizeX - margin - 1.0f, -sizeY + margin + 1.0f + ii*2.1f, 0.0f);