RetroArch
opaque.cg.d3d9.h
Go to the documentation of this file.
1 #include "shaders_common.h"
2 
3 static const char *stock_cg_d3d9_program = CG(
4  void main_vertex
5  (
6  float4 position : POSITION,
7  float2 texCoord : TEXCOORD0,
8  float4 color : COLOR,
9 
10  uniform float4x4 modelViewProj,
11 
12  out float4 oPosition : POSITION,
13  out float2 otexCoord : TEXCOORD0,
14  out float4 oColor : COLOR
15  )
16  {
17  oPosition = mul(modelViewProj, position);
18  otexCoord = texCoord;
19  oColor = color;
20  }
21 
22  float4 main_fragment(in float4 color : COLOR, float2 tex : TEXCOORD0, uniform sampler2D s0 : TEXUNIT0) : COLOR
23  {
24  return color * tex2D(s0, tex);
25  }
26 );
static const char * stock_cg_d3d9_program
Definition: opaque.cg.d3d9.h:3
sampler2DBase< glm::vec4 > sampler2D
Definition: sampler.hpp:94
struct passwd out
Definition: missing_libc_functions.c:51
GLuint in
Definition: glext.h:10523
GLuint color
Definition: glext.h:6883
#define CG(src)
Definition: shaders_common.h:9