Fixed warnings.

This commit is contained in:
Branimir Karadžić 2021-10-06 17:39:48 -07:00
parent a923b86aab
commit ad8eb09cf6
3 changed files with 7 additions and 9 deletions

View File

@ -542,7 +542,7 @@ namespace
; ;
const uint16_t viewRectWidth = uint16_t(bx::ceil(m_state.m_size[0] * viewScale) ); const uint16_t viewRectWidth = uint16_t(bx::ceil(m_state.m_size[0] * viewScale) );
const uint16_t viewRectHeight = uint16_t(bx::ceil(m_state.m_size[1] * viewScale) ); const uint16_t viewRectHeight = uint16_t(bx::ceil(m_state.m_size[1] * viewScale) );
const uint16_t viewRectY = caps->originBottomLeft ? m_state.m_size[1] - viewRectHeight : 0; const uint16_t viewRectY = uint16_t(caps->originBottomLeft ? m_state.m_size[1] - viewRectHeight : 0);
bgfx::setViewRect(view, 0, viewRectY, viewRectWidth, viewRectHeight); bgfx::setViewRect(view, 0, viewRectY, viewRectWidth, viewRectHeight);
bgfx::setViewTransform(view, m_state.m_view, m_state.m_proj); bgfx::setViewTransform(view, m_state.m_view, m_state.m_proj);

View File

@ -10,20 +10,18 @@
uniform vec4 u_params[3]; uniform vec4 u_params[3];
#define ViewportSizeRcasAttenuation (u_params[0]) #define ViewportSizeRcasAttenuation u_params[0]
#define SrcSize (u_params[1]) #define SrcSize u_params[1]
#define DstSize (u_params[2]) #define DstSize u_params[2]
#define A_GPU 1 #define A_GPU 1
#if BGFX_SHADER_LANGUAGE_GLSL > 0 #if BGFX_SHADER_LANGUAGE_GLSL
#define A_GLSL 1 #define A_GLSL 1
#define A_SKIP_EXT 1 #define A_SKIP_EXT 1
#elif BGFX_SHADER_LANGUAGE_SPIRV > 0 #else
#define A_HLSL 1 #define A_HLSL 1
#elif BGFX_SHADER_LANGUAGE_HLSL > 0 #endif // BGFX_SHADER_LANGUAGE_GLSL
#define A_HLSL 1
#endif
#if SAMPLE_SLOW_FALLBACK #if SAMPLE_SLOW_FALLBACK
#include "ffx_a.h" #include "ffx_a.h"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

After

Width:  |  Height:  |  Size: 218 KiB