mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
sokol: upgrade to latest version, fix all related issues
This commit is contained in:
parent
756075380b
commit
0bf85d049e
36 changed files with 8304 additions and 8096 deletions
|
@ -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!')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue