Fixed warnings.
This commit is contained in:
parent
a923b86aab
commit
ad8eb09cf6
@ -542,7 +542,7 @@ namespace
|
||||
;
|
||||
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 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::setViewTransform(view, m_state.m_view, m_state.m_proj);
|
||||
|
@ -10,20 +10,18 @@
|
||||
|
||||
uniform vec4 u_params[3];
|
||||
|
||||
#define ViewportSizeRcasAttenuation (u_params[0])
|
||||
#define SrcSize (u_params[1])
|
||||
#define DstSize (u_params[2])
|
||||
#define ViewportSizeRcasAttenuation u_params[0]
|
||||
#define SrcSize u_params[1]
|
||||
#define DstSize u_params[2]
|
||||
|
||||
#define A_GPU 1
|
||||
|
||||
#if BGFX_SHADER_LANGUAGE_GLSL > 0
|
||||
#if BGFX_SHADER_LANGUAGE_GLSL
|
||||
#define A_GLSL 1
|
||||
#define A_SKIP_EXT 1
|
||||
#elif BGFX_SHADER_LANGUAGE_SPIRV > 0
|
||||
#else
|
||||
#define A_HLSL 1
|
||||
#elif BGFX_SHADER_LANGUAGE_HLSL > 0
|
||||
#define A_HLSL 1
|
||||
#endif
|
||||
#endif // BGFX_SHADER_LANGUAGE_GLSL
|
||||
|
||||
#if SAMPLE_SLOW_FALLBACK
|
||||
#include "ffx_a.h"
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 176 KiB After Width: | Height: | Size: 218 KiB |
Loading…
Reference in New Issue
Block a user