@@ -36,7 +36,7 @@ using namespace video;
3636// #define SHADER_CACHE_TEST_COMPILATION_CACHE_STORE
3737// #define SHADER_CACHE_TEST_CACHE_RETRIEVE
3838
39- static constexpr bool DebugModeWireframe = true ;
39+ static constexpr bool DebugModeWireframe = false ;
4040static constexpr bool DebugRotatingViewProj = false ;
4141static constexpr bool FragmentShaderPixelInterlock = false ;
4242
@@ -346,11 +346,10 @@ class ComputerAidedDesign final : public examples::SimpleWindowedApplication, pu
346346 }
347347
348348 IGPUSampler::SParams samplerParams = {};
349- // @Lucas you might need to modify the sampler
350- samplerParams.TextureWrapU = IGPUSampler::ETC_REPEAT;
351- samplerParams.TextureWrapV = IGPUSampler::ETC_REPEAT;
352- samplerParams.TextureWrapW = IGPUSampler::ETC_REPEAT;
353- samplerParams.BorderColor = IGPUSampler::ETBC_FLOAT_OPAQUE_BLACK;
349+ samplerParams.TextureWrapU = IGPUSampler::ETC_CLAMP_TO_BORDER;
350+ samplerParams.TextureWrapV = IGPUSampler::ETC_CLAMP_TO_BORDER;
351+ samplerParams.TextureWrapW = IGPUSampler::ETC_CLAMP_TO_BORDER;
352+ samplerParams.BorderColor = IGPUSampler::ETBC_FLOAT_OPAQUE_WHITE; // positive means outside shape
354353 samplerParams.MinFilter = IGPUSampler::ETF_LINEAR;
355354 samplerParams.MaxFilter = IGPUSampler::ETF_LINEAR;
356355 samplerParams.MipmapMode = IGPUSampler::ESMM_LINEAR;
@@ -1028,7 +1027,7 @@ class ComputerAidedDesign final : public examples::SimpleWindowedApplication, pu
10281027 const auto resourceIx = m_realFrameIx%m_framesInFlight;
10291028 auto & cb = m_commandBuffers[resourceIx];
10301029 auto & commandPool = m_graphicsCommandPools[resourceIx];
1031-
1030+
10321031 // safe to proceed
10331032 cb->reset (video::IGPUCommandBuffer::RESET_FLAGS::RELEASE_RESOURCES_BIT);
10341033 cb->begin (video::IGPUCommandBuffer::USAGE::ONE_TIME_SUBMIT_BIT);
0 commit comments