sokol: upgrade to latest version, fix all related issues

This commit is contained in:
Alexander Medvednikov 2023-10-05 20:22:41 +03:00
parent 756075380b
commit 0bf85d049e
36 changed files with 8304 additions and 8096 deletions

View file

@ -24,11 +24,11 @@ pub fn create_texture(w int, h int, buf &u8) gfx.Image {
width: w
height: h
num_mipmaps: 0
min_filter: .linear
mag_filter: .linear
// min_filter: .linear
// mag_filter: .linear
// usage: .dynamic
wrap_u: .clamp_to_edge
wrap_v: .clamp_to_edge
// wrap_u: .clamp_to_edge
// wrap_v: .clamp_to_edge
label: &u8(0)
d3d11_texture: 0
}
@ -133,7 +133,7 @@ pub fn (mut obj_part ObjPart) create_pipeline(in_part []int, shader gfx.Shader,
res.bind.vertex_buffers[0] = vbuf
res.bind.index_buffer = ibuf
res.bind.fs_images[C.SLOT_tex] = texture
res.bind.fs.images[C.SLOT_tex] = texture
res.pipeline = gfx.make_pipeline(&pipdesc)
// println('Buffers part [$in_part] init done!')