From 32deb6f70c60a7daf604a7c9c1ff0b4920f0332c Mon Sep 17 00:00:00 2001 From: Ivan Epifanov Date: Mon, 21 Jun 2021 23:14:40 +0300 Subject: [PATCH] Vita: fix point size --- .../vitagxm/SDL_render_vita_gxm_shaders.h | 23 ++++++++++--------- src/render/vitagxm/shader_src/color_v.cg | 6 +++-- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/render/vitagxm/SDL_render_vita_gxm_shaders.h b/src/render/vitagxm/SDL_render_vita_gxm_shaders.h index 9d13e42cd..d7911bf07 100644 --- a/src/render/vitagxm/SDL_render_vita_gxm_shaders.h +++ b/src/render/vitagxm/SDL_render_vita_gxm_shaders.h @@ -124,30 +124,30 @@ static const unsigned char gxm_shader_color_f[gxm_shader_color_f_size] = { 0x7e, 0x0d, 0x80, 0x40, }; -#define gxm_shader_color_v_size 344 +#define gxm_shader_color_v_size 352 static const unsigned char gxm_shader_color_v[gxm_shader_color_v_size] = { 0x47, 0x58, 0x50, 0x00, 0x01, 0x05, 0x50, 0x03, - 0x55, 0x01, 0x00, 0x00, 0x2e, 0x35, 0x0f, 0x26, - 0x23, 0x46, 0x37, 0xbb, 0x00, 0x00, 0x19, 0x00, + 0x5d, 0x01, 0x00, 0x00, 0x4a, 0xb6, 0x4f, 0x7b, + 0x51, 0x19, 0x1a, 0xae, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, - 0xe8, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, + 0xf0, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x08, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x01, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x74, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, - 0xa0, 0x00, 0x00, 0x00, 0xc0, 0x3d, 0x03, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x94, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x94, 0x00, 0x00, 0x00, + 0xa8, 0x00, 0x00, 0x00, 0xc0, 0x3d, 0x03, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x9c, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x9c, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x74, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x08, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x44, 0xfa, @@ -158,6 +158,7 @@ static const unsigned char gxm_shader_color_v[gxm_shader_color_v_size] = { 0x02, 0x11, 0x45, 0xcf, 0x80, 0x8f, 0xb1, 0x18, 0x00, 0x11, 0x01, 0xc0, 0x81, 0x81, 0xb1, 0x18, 0x01, 0xd1, 0x42, 0xc0, 0x81, 0x81, 0xb1, 0x18, + 0x40, 0x00, 0x10, 0x41, 0x09, 0x05, 0x82, 0x38, 0x00, 0x00, 0x20, 0xa0, 0x00, 0x50, 0x27, 0xfb, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, diff --git a/src/render/vitagxm/shader_src/color_v.cg b/src/render/vitagxm/shader_src/color_v.cg index f60879783..713256050 100644 --- a/src/render/vitagxm/shader_src/color_v.cg +++ b/src/render/vitagxm/shader_src/color_v.cg @@ -2,10 +2,12 @@ void main( float3 aPosition, float4 aColor, uniform float4x4 wvp, - float4 out vPosition : POSITION, - float4 out vColor : COLOR + out float4 vPosition : POSITION, + out float4 vColor : COLOR, + out float pSize : PSIZE ) { vPosition = mul(float4(aPosition, 1.f), wvp); vColor = aColor; + pSize = 1.f; }