mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-10 13:02:27 +00:00
Add XMB shader compilation to shader_gl_cg.c
This commit is contained in:
parent
30ade96fc0
commit
6579b5f3c8
@ -55,3 +55,4 @@ static const char *stock_xmb =
|
||||
" OUT.color = float4(1.0, 1.0, 1.0, 0.05);\n"
|
||||
" return OUT;\n"
|
||||
"}\n"
|
||||
;
|
||||
|
@ -34,3 +34,4 @@ static const char *zahnrad_shader =
|
||||
" OUT.color = tex2D(Texture, texCoord);\n"
|
||||
" return OUT;\n"
|
||||
"}\n"
|
||||
;
|
||||
|
@ -43,6 +43,8 @@
|
||||
#include "../../rewind.h"
|
||||
#include "../video_state_tracker.h"
|
||||
|
||||
#include "../drivers/gl_shaders/pipeline_xmb_ribbon.cg.h"
|
||||
|
||||
#define SEMANTIC_TEXCOORD 0x92ee91cdU
|
||||
#define SEMANTIC_TEXCOORD0 0xf0c0cb9dU
|
||||
#define SEMANTIC_TEXCOORD1 0xf0c0cb9eU
|
||||
@ -1091,6 +1093,7 @@ static void gl_cg_set_program_attributes(void *data, unsigned i)
|
||||
static void *gl_cg_init(void *data, const char *path)
|
||||
{
|
||||
unsigned i;
|
||||
struct shader_program_info shader_prog_info;
|
||||
cg_shader_data_t *cg_data = (cg_shader_data_t*)
|
||||
calloc(1, sizeof(cg_shader_data_t));
|
||||
|
||||
@ -1162,6 +1165,15 @@ static void *gl_cg_init(void *data, const char *path)
|
||||
|
||||
gl_cg_set_shaders(cg_data->prg[1].fprg, cg_data->prg[1].vprg);
|
||||
|
||||
shader_prog_info.combined = stock_xmb;
|
||||
shader_prog_info.is_file = false;
|
||||
|
||||
gl_cg_compile_program(
|
||||
cg_data,
|
||||
VIDEO_SHADER_MENU,
|
||||
&cg_data->prg[VIDEO_SHADER_MENU],
|
||||
&shader_prog_info);
|
||||
|
||||
return cg_data;
|
||||
|
||||
error:
|
||||
|
Loading…
Reference in New Issue
Block a user