checker: stricter rules for C types; C aliases; sokol fixes

This commit is contained in:
Alexander Medvednikov 2023-10-14 18:31:37 +03:00
parent 5f1e6815cd
commit 545ee1ae23
27 changed files with 123 additions and 59 deletions

View file

@ -329,7 +329,7 @@ fn my_init(mut app App) {
mut pipdesc := gfx.PipelineDesc{}
unsafe { vmemset(&pipdesc, 0, int(sizeof(pipdesc))) }
color_state := gfx.ColorState{
color_state := gfx.ColorTargetState{
blend: gfx.BlendState{
enabled: true
src_factor_rgb: .src_alpha

View file

@ -529,7 +529,7 @@ fn my_init(mut app App) {
mut pipdesc := gfx.PipelineDesc{}
unsafe { vmemset(&pipdesc, 0, int(sizeof(pipdesc))) }
color_state := gfx.ColorState{
color_state := gfx.ColorTargetState{
blend: gfx.BlendState{
enabled: true
src_factor_rgb: .src_alpha

View file

@ -120,7 +120,7 @@ pub fn (mut obj_part ObjPart) create_pipeline(in_part []int, shader gfx.Shader,
// pipdesc.layout.attrs[C.ATTR_vs_a_Texcoord0].format = .short2n // u,v as u16
pipdesc.index_type = .uint32
color_state := gfx.ColorState{
color_state := gfx.ColorTargetState{
blend: gfx.BlendState{
enabled: true
src_factor_rgb: .src_alpha

View file

@ -83,7 +83,7 @@ fn init(mut app App) {
mut pipdesc := gfx.PipelineDesc{}
unsafe { vmemset(&pipdesc, 0, int(sizeof(pipdesc))) }
color_state := gfx.ColorState{
color_state := gfx.ColorTargetState{
blend: gfx.BlendState{
enabled: true
src_factor_rgb: .src_alpha