RetroArch
Functions | Variables
snowflake.c File Reference
#include <stddef.h>
#include <malloc.h>
#include <string.h>
#include <wiiu/gx2/common.h>
#include "gx2_shader_inl.h"
#include "menu_shaders.h"
Include dependency graph for snowflake.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 snowflake_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 _x
Definition: gx2_shader_inl.h:113
#define _0
Definition: gx2_common.h:24
Definition: enum.h:151
Definition: enum.h:50
#define _1
Definition: gx2_common.h:25
#define _y
Definition: gx2_shader_inl.h:114

◆ attributes

GX2AttribVar attributes[]
static
Initial value:
=
{
{ "Position", GX2_SHADER_VAR_TYPE_FLOAT4, 0, 0},
{ "TexCoord", GX2_SHADER_VAR_TYPE_FLOAT2, 0, 1},
}
Definition: enum.h:284
Definition: enum.h:286

◆ ps_program

ps_program

◆ samplers

Initial value:
=
{
}
Definition: enum.h:261

◆ snowflake_shader

GX2Shader snowflake_shader

◆ uniform_blocks

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

◆ uniform_vars

GX2UniformVar uniform_vars[]
static
Initial value:
= {
{"global.MVP", GX2_SHADER_VAR_TYPE_FLOAT, 1, 0, 0},
{"global.OutputSize", GX2_SHADER_VAR_TYPE_FLOAT, 1, 16, 0},
{"global.time", GX2_SHADER_VAR_TYPE_FLOAT, 1, 20, 0},
}
Definition: enum.h:283

◆ vs_program

vs_program