Correcting sokol-shdc naming...

@module doesn't work on all uniforms.. making it useless
This commit is contained in:
2025-02-13 16:08:52 -05:00
parent 10080190c8
commit d806fc6083
9 changed files with 51 additions and 50 deletions

View File

@@ -59,7 +59,7 @@ setup_gfx_objects :: proc( ctx : ^Context, ve_ctx : ^ve.Context, vert_cap, index
backend := gfx.query_backend()
app_env := glue.environment()
ctx.glyph_shader = gfx.make_shader(render_glyph_shader_desc(backend) )
ctx.glyph_shader = gfx.make_shader(ve_render_glyph_shader_desc(backend) )
ctx.atlas_shader = gfx.make_shader(ve_blit_atlas_shader_desc(backend) )
ctx.screen_shader = gfx.make_shader(ve_draw_text_shader_desc(backend) )
@@ -83,12 +83,12 @@ setup_gfx_objects :: proc( ctx : ^Context, ve_ctx : ^ve.Context, vert_cap, index
{
vs_layout : Vertex_Layout_State
{
vs_layout.attrs[ATTR_render_glyph_v_position] = Vertex_Attribute_State {
vs_layout.attrs[ATTR_ve_render_glyph_v_position] = Vertex_Attribute_State {
format = Vertex_Format.FLOAT2,
offset = 0,
buffer_index = 0,
}
vs_layout.attrs[ATTR_render_glyph_v_texture] = Vertex_Attribute_State {
vs_layout.attrs[ATTR_ve_render_glyph_v_texture] = Vertex_Attribute_State {
format = Vertex_Format.FLOAT2,
offset = size_of(ve.Vec2),
buffer_index = 0,