RetroArch
pipeline_nuklear.cg.h
Go to the documentation of this file.
1 #include "shaders_common.h"
2 
3 static const char *nuklear_shader = CG(
4  struct input
5  {
6  float time;
7  };
8 
9  void main_vertex
10  (
11  float4 position : POSITION,
12  float4 color : COLOR,
13  float2 texCoord : TEXCOORD0,
14 
15  uniform float4x4 modelViewProj,
16 
17  out float4 oPosition : POSITION,
18  out float4 oColor : COLOR,
19  out float2 otexCoord : TEXCOORD
20  )
21  {
22  oPosition = mul(modelViewProj, position);
23  oColor = color;
24  otexCoord = texCoord;
25  }
26 
27  struct output
28  {
29  float4 color : COLOR;
30  };
31 
32  output main_fragment(float2 texCoord : TEXCOORD0, uniform sampler2D Texture : TEXUNIT0, uniform input IN)\
33  {
34  output OUT;
35  OUT.color = tex2D(Texture, texCoord);
36  return OUT;
37  }
38 );
sampler2DBase< glm::vec4 > sampler2D
Definition: sampler.hpp:94
struct passwd out
Definition: missing_libc_functions.c:51
GLenum GLenum GLenum input
Definition: glext.h:9938
time_t time(time_t *timer)
static const char * nuklear_shader
Definition: pipeline_nuklear.cg.h:3
std::string output
Definition: Config.FromFile.cpp:44
GLuint color
Definition: glext.h:6883
#define CG(src)
Definition: shaders_common.h:9
Definition: glslang_tab.cpp:198
Definition: Context.h:13
Definition: glslang_tab.cpp:197