RetroArch
Functions | Variables
tex.c File Reference
#include <stddef.h>
#include <malloc.h>
#include <string.h>
#include <wiiu/gx2/common.h>
#include "gx2_shader_inl.h"
#include "tex.h"
Include dependency graph for tex.c:

Functions

 __attribute__ ((aligned(GX2_SHADER_ALIGNMENT)))
 

Variables

 vs_program
 
 ps_program
 
static GX2AttribVar attributes []
 
static GX2AttribStream attribute_stream []
 
static GX2SamplerVar samplers []
 
static GX2UniformBlock uniform_blocks []
 
static GX2UniformVar uniform_vars []
 
GX2Shader tex_shader
 

Function Documentation

◆ __attribute__()

__attribute__ ( (aligned(GX2_SHADER_ALIGNMENT))  )

Variable Documentation

◆ attribute_stream

GX2AttribStream attribute_stream[]
static
Initial value:
=
{
}
#define GX2_COMP_SEL(c0, c1, c2, c3)
Definition: gx2_common.h:26
Definition: enum.h:43
#define _z
Definition: gx2_shader_inl.h:115
#define _x
Definition: gx2_shader_inl.h:113
#define _0
Definition: gx2_common.h:24
GLuint coord
Definition: glext.h:10418
Definition: enum.h:151
GLuint color
Definition: glext.h:6883
Definition: enum.h:50
#define _1
Definition: gx2_common.h:25
#define _y
Definition: gx2_shader_inl.h:114
#define _w
Definition: gx2_shader_inl.h:116
Definition: tex.h:25

◆ attributes

GX2AttribVar attributes[]
static
Initial value:
=
{
{ "position", GX2_SHADER_VAR_TYPE_FLOAT2, 0, 0},
{ "tex_coord", GX2_SHADER_VAR_TYPE_FLOAT2, 0, 1},
{ "color", GX2_SHADER_VAR_TYPE_FLOAT4, 0, 2},
}
Definition: enum.h:284
Definition: enum.h:286

◆ ps_program

ps_program
Initial value:
=
{
{
TEX(48, 1) VALID_PIX,
ALU(32, 4),
},
{
},
{
}
}
#define ALU_LAST
Definition: gx2_shader_inl.h:77
#define _z
Definition: gx2_shader_inl.h:115
#define _x
Definition: gx2_shader_inl.h:113
#define ALU_MUL(dstGpr, dstChan, src0Sel, src0Chan, src1Sel, src1Chan)
Definition: gx2_shader_inl.h:350
#define TEX(addr, cnt)
Definition: gx2_shader_inl.h:312
#define VALID_PIX
Definition: gx2_shader_inl.h:167
#define _R1
Definition: gx2_shader_inl.h:273
#define _R0
Definition: gx2_shader_inl.h:272
#define ALU(addr, cnt)
Definition: gx2_shader_inl.h:317
#define _y
Definition: gx2_shader_inl.h:114
#define END_OF_PROGRAM
Definition: gx2_shader_inl.h:62

◆ samplers

Initial value:

◆ tex_shader

GX2Shader tex_shader

◆ uniform_blocks

GX2UniformBlock uniform_blocks[]
static
Initial value:
= {
{"UBO", 1, 64}
}

◆ uniform_vars

GX2UniformVar uniform_vars[]
static
Initial value:
= {
{"global.MVP", GX2_SHADER_VAR_TYPE_MATRIX4X4, 1, 0, 0},
}
Definition: enum.h:290

◆ vs_program

vs_program