mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: add port of simple triangle sokol sample (#13298)
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
module gfx
|
||||
|
||||
struct C.sg_desc {
|
||||
pub mut:
|
||||
_start_canary u32
|
||||
buffer_pool_size int
|
||||
image_pool_size int
|
||||
@ -30,18 +31,14 @@ struct C.sg_desc {
|
||||
pub type Desc = C.sg_desc
|
||||
|
||||
struct C.sg_context_desc {
|
||||
/*
|
||||
sg_pixel_format color_format;
|
||||
sg_pixel_format depth_format;
|
||||
int sample_count;
|
||||
sg_wgpu_context_desc wgpu;
|
||||
*/
|
||||
pub mut:
|
||||
color_format PixelFormat
|
||||
depth_format PixelFormat
|
||||
sample_count int
|
||||
gl GLContextDesc
|
||||
metal MetalContextDesc
|
||||
d3d11 D3D11ContextDesc
|
||||
color_format PixelFormat
|
||||
depth_format PixelFormat
|
||||
// TODO C.sg_wgpu_context_desc wgpu;
|
||||
}
|
||||
|
||||
pub type ContextDesc = C.sg_context_desc
|
||||
|
Reference in New Issue
Block a user