2016-04-24 08:54:39 +00:00
|
|
|
//#version 420 // Keep it for editor detection
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// Common Interface Definition
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifdef VERTEX_SHADER
|
|
|
|
|
|
|
|
out gl_PerVertex {
|
|
|
|
vec4 gl_Position;
|
|
|
|
float gl_PointSize;
|
|
|
|
#if !pGL_ES
|
|
|
|
float gl_ClipDistance[1];
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef GEOMETRY_SHADER
|
|
|
|
|
|
|
|
in gl_PerVertex {
|
|
|
|
vec4 gl_Position;
|
|
|
|
float gl_PointSize;
|
|
|
|
#if !pGL_ES
|
|
|
|
float gl_ClipDistance[1];
|
|
|
|
#endif
|
|
|
|
} gl_in[];
|
|
|
|
|
|
|
|
out gl_PerVertex {
|
|
|
|
vec4 gl_Position;
|
|
|
|
float gl_PointSize;
|
|
|
|
#if !pGL_ES
|
|
|
|
float gl_ClipDistance[1];
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// Constant Buffer Definition
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
2016-06-05 14:42:52 +00:00
|
|
|
// Performance note, some drivers (nouveau) will validate all Constant Buffers
|
|
|
|
// even if only one was updated.
|
2016-04-24 09:07:46 +00:00
|
|
|
|
2016-06-05 14:42:52 +00:00
|
|
|
#ifdef FRAGMENT_SHADER
|
2016-04-24 08:54:39 +00:00
|
|
|
layout(std140, binding = 15) uniform cb15
|
|
|
|
{
|
|
|
|
ivec4 ScalingFactor;
|
2016-05-29 08:03:26 +00:00
|
|
|
ivec4 ChannelShuffle;
|
2016-10-09 12:28:49 +00:00
|
|
|
|
|
|
|
int EMODA;
|
|
|
|
int EMODC;
|
|
|
|
int _pad0;
|
|
|
|
int _pad1;
|
2016-04-24 08:54:39 +00:00
|
|
|
};
|
2016-06-05 14:42:52 +00:00
|
|
|
#endif
|
2016-04-24 08:54:39 +00:00
|
|
|
|
2016-06-05 14:42:52 +00:00
|
|
|
#if defined(VERTEX_SHADER) || defined(GEOMETRY_SHADER)
|
2016-04-24 08:54:39 +00:00
|
|
|
layout(std140, binding = 20) uniform cb20
|
|
|
|
{
|
2016-06-21 07:45:37 +00:00
|
|
|
vec2 VertexScale;
|
|
|
|
vec2 VertexOffset;
|
|
|
|
|
|
|
|
vec4 TextureOffset;
|
|
|
|
|
|
|
|
vec2 PointSize;
|
2020-05-23 18:37:51 +00:00
|
|
|
uint MaxDepth;
|
|
|
|
uint pad_cb20;
|
2016-04-24 08:54:39 +00:00
|
|
|
};
|
2016-06-05 14:42:52 +00:00
|
|
|
#endif
|
2016-04-24 08:54:39 +00:00
|
|
|
|
2016-06-05 14:42:52 +00:00
|
|
|
#if defined(VERTEX_SHADER) || defined(FRAGMENT_SHADER)
|
2016-04-24 08:54:39 +00:00
|
|
|
layout(std140, binding = 21) uniform cb21
|
|
|
|
{
|
|
|
|
vec3 FogColor;
|
|
|
|
float AREF;
|
|
|
|
|
|
|
|
vec4 WH;
|
|
|
|
|
|
|
|
vec2 TA;
|
2016-06-10 23:08:50 +00:00
|
|
|
//float _pad0;
|
|
|
|
int Uber_ATST;
|
2016-04-24 08:54:39 +00:00
|
|
|
float Af;
|
|
|
|
|
|
|
|
uvec4 MskFix;
|
|
|
|
|
|
|
|
uvec4 FbMask;
|
|
|
|
|
|
|
|
vec4 HalfTexel;
|
|
|
|
|
|
|
|
vec4 MinMax;
|
|
|
|
|
|
|
|
vec2 TextureScale;
|
|
|
|
vec2 TC_OffsetHack;
|
2019-09-15 18:49:34 +00:00
|
|
|
|
2020-06-19 03:33:57 +00:00
|
|
|
vec3 pad_cb21;
|
|
|
|
float MaxDepthPS;
|
2020-06-06 15:21:03 +00:00
|
|
|
|
2019-09-15 18:49:34 +00:00
|
|
|
mat4 DitherMatrix;
|
2016-04-24 08:54:39 +00:00
|
|
|
};
|
2016-06-05 14:42:52 +00:00
|
|
|
#endif
|
2016-04-24 08:54:39 +00:00
|
|
|
|
2016-06-05 14:42:52 +00:00
|
|
|
//layout(std140, binding = 22) uniform cb22
|
|
|
|
//{
|
|
|
|
// vec4 rt_size;
|
|
|
|
//};
|
2016-04-24 08:54:39 +00:00
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// Default Sampler
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#ifdef FRAGMENT_SHADER
|
|
|
|
|
|
|
|
layout(binding = 0) uniform sampler2D TextureSampler;
|
|
|
|
|
|
|
|
#endif
|