@@ -291,7 +291,7 @@ struct C.sg_context {
291
291
292
292
pub type Context = C.sg_context
293
293
294
- struct C.sg_range {
294
+ pub struct C.sg_range {
295
295
pub mut :
296
296
ptr voidptr
297
297
size usize
@@ -400,7 +400,7 @@ pub fn (mut b Buffer) free() {
400
400
C.sg_destroy_buffer (* b)
401
401
}
402
402
403
- struct C.sg_image_desc {
403
+ pub struct C.sg_image_desc {
404
404
pub mut :
405
405
_start_canary u32
406
406
@type ImageType
@@ -438,7 +438,7 @@ pub mut:
438
438
439
439
pub type ImageDesc = C.sg_image_desc
440
440
441
- struct C.sg_image_info {
441
+ pub struct C.sg_image_info {
442
442
pub mut :
443
443
slot SlotInfo // resource pool slot info
444
444
upd_frame_index u32 // frame index of last sg_update_image()
@@ -448,7 +448,7 @@ pub mut:
448
448
449
449
pub type ImageInfo = C.sg_image_info
450
450
451
- struct C.sg_image {
451
+ pub struct C.sg_image {
452
452
pub :
453
453
id u32
454
454
}
@@ -463,7 +463,7 @@ pub const sg_cubeface_num = 6
463
463
464
464
pub const sg_max_mipmaps = 16
465
465
466
- struct C.sg_image_data {
466
+ pub struct C.sg_image_data {
467
467
pub mut :
468
468
subimage [sg_cubeface_num][sg_max_mipmaps]Range
469
469
}
485
485
486
486
pub type Features = C.sg_features
487
487
488
- struct C.sg_limits {
488
+ pub struct C.sg_limits {
489
489
pub :
490
490
max_image_size_2 d u32 // max width/height of SG_IMAGETYPE_2D images
491
491
max_image_size_cube u32 // max width/height of SG_IMAGETYPE_CUBE images
@@ -497,15 +497,15 @@ pub:
497
497
498
498
pub type Limits = C.sg_limits
499
499
500
- struct C.sg_layout_desc {
500
+ pub struct C.sg_layout_desc {
501
501
pub mut :
502
502
buffers [8 ]BufferLayoutDesc
503
503
attrs [16 ]VertexAttrDesc
504
504
}
505
505
506
506
pub type LayoutDesc = C.sg_layout_desc
507
507
508
- struct C.sg_buffer_layout_desc {
508
+ pub struct C.sg_buffer_layout_desc {
509
509
pub mut :
510
510
stride int
511
511
step_func VertexStep
@@ -514,7 +514,7 @@ pub mut:
514
514
515
515
pub type BufferLayoutDesc = C.sg_buffer_layout_desc
516
516
517
- struct C.sg_vertex_attr_desc {
517
+ pub struct C.sg_vertex_attr_desc {
518
518
pub mut :
519
519
buffer_index int
520
520
offset int
@@ -583,23 +583,23 @@ pub fn (mut action C.sg_color_attachment_action) set_color_values(r, g, b, a f32
583
583
action.val[3] = a
584
584
}
585
585
*/
586
- struct C.sg_depth_attachment_action {
586
+ pub struct C.sg_depth_attachment_action {
587
587
pub mut :
588
588
action Action
589
589
value f32
590
590
}
591
591
592
592
pub type DepthAttachmentAction = C.sg_depth_attachment_action
593
593
594
- struct C.sg_stencil_attachment_action {
594
+ pub struct C.sg_stencil_attachment_action {
595
595
pub mut :
596
596
action Action
597
597
value u8
598
598
}
599
599
600
600
pub type StencilAttachmentAction = C.sg_stencil_attachment_action
601
601
602
- struct C.sg_pixelformat_info {
602
+ pub struct C.sg_pixelformat_info {
603
603
pub :
604
604
sample bool // pixel format can be sampled in shaders
605
605
filter bool // pixel format can be sampled with filtering
0 commit comments