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

Functions

 __attribute__ ((aligned(GX2_SHADER_ALIGNMENT)))
 

Variables

 vs_program
 
 ps_program
 
 gs_program
 
 gs_copy_program
 
static GX2AttribVar attributes []
 
static GX2AttribStream attribute_stream []
 
static GX2SamplerVar samplers []
 
static GX2UniformBlock uniform_blocks []
 
static GX2UniformVar uniform_vars []
 
GX2Shader sprite_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
#define _z
Definition: gx2_shader_inl.h:115
#define _x
Definition: gx2_shader_inl.h:113
GLuint coord
Definition: glext.h:10418
Definition: enum.h:28
Definition: enum.h:151
GLuint color
Definition: glext.h:6883
Definition: enum.h:50
#define _y
Definition: gx2_shader_inl.h:114
#define _w
Definition: gx2_shader_inl.h:116
Definition: sprite.h:25

◆ attributes

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

◆ gs_copy_program

gs_copy_program
Initial value:
=
{
{
VTX(16, 3),
},
{
}
}
#define MEGA(x)
Definition: gx2_shader_inl.h:182
#define OFFSET(x)
Definition: gx2_shader_inl.h:183
#define _z
Definition: gx2_shader_inl.h:115
#define _x
Definition: gx2_shader_inl.h:113
#define NO_INDEX_OFFSET
Definition: gx2_shader_inl.h:187
#define VTX(addr, cnt)
Definition: gx2_shader_inl.h:313
#define MINI(x)
Definition: gx2_shader_inl.h:181
#define _b(x)
Definition: gx2_shader_inl.h:307
#define VTX_FETCH(dstReg, dstSelX, dstSelY, dstSelZ, dstSelW, srcReg, srcSelX, buffer_id, type, mega, offset)
Definition: gx2_shader_inl.h:462
#define _R1
Definition: gx2_shader_inl.h:273
#define BURSTCNT(x)
Definition: gx2_shader_inl.h:65
#define FETCH_TYPE(x)
Definition: gx2_shader_inl.h:180
#define _R2
Definition: gx2_shader_inl.h:274
#define PARAM0
Definition: gx2_shader_inl.h:265
#define _R0
Definition: gx2_shader_inl.h:272
#define POS0
Definition: gx2_shader_inl.h:264
#define _y
Definition: gx2_shader_inl.h:114
#define END_OF_PROGRAM
Definition: gx2_shader_inl.h:62
#define _w
Definition: gx2_shader_inl.h:116
#define EXP_DONE(dstReg_and_type, srcReg, srcSelX, srcSelY, srcSelZ, srcSelW)
Definition: gx2_shader_inl.h:321
#define _R3
Definition: gx2_shader_inl.h:275

◆ gs_program

gs_program

◆ 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:

◆ sprite_shader

GX2Shader sprite_shader

◆ uniform_blocks

GX2UniformBlock uniform_blocks[]
static
Initial value:
=
{
{"UBO_vp", 1, sizeof(GX2_vec2)},
{"UBO_tex", 2, sizeof(GX2_vec2)},
}
GX2_vec2
Definition: shader_utils.h:25

◆ uniform_vars

GX2UniformVar uniform_vars[]
static
Initial value:
=
{
{"vp_size", GX2_SHADER_VAR_TYPE_FLOAT2, 1, 0, 0},
{"tex_size", GX2_SHADER_VAR_TYPE_FLOAT2, 1, 0, 1},
}
Definition: enum.h:284

◆ vs_program

vs_program