Skip to content

Commit d215618

Browse files
committed
sokol: mark pub structs
1 parent de136f6 commit d215618

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

vlib/sokol/gfx/gfx_structs.c.v

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ struct C.sg_context {
291291

292292
pub type Context = C.sg_context
293293

294-
struct C.sg_range {
294+
pub struct C.sg_range {
295295
pub mut:
296296
ptr voidptr
297297
size usize
@@ -400,7 +400,7 @@ pub fn (mut b Buffer) free() {
400400
C.sg_destroy_buffer(*b)
401401
}
402402

403-
struct C.sg_image_desc {
403+
pub struct C.sg_image_desc {
404404
pub mut:
405405
_start_canary u32
406406
@type ImageType
@@ -438,7 +438,7 @@ pub mut:
438438

439439
pub type ImageDesc = C.sg_image_desc
440440

441-
struct C.sg_image_info {
441+
pub struct C.sg_image_info {
442442
pub mut:
443443
slot SlotInfo // resource pool slot info
444444
upd_frame_index u32 // frame index of last sg_update_image()
@@ -448,7 +448,7 @@ pub mut:
448448

449449
pub type ImageInfo = C.sg_image_info
450450

451-
struct C.sg_image {
451+
pub struct C.sg_image {
452452
pub:
453453
id u32
454454
}
@@ -463,7 +463,7 @@ pub const sg_cubeface_num = 6
463463

464464
pub const sg_max_mipmaps = 16
465465

466-
struct C.sg_image_data {
466+
pub struct C.sg_image_data {
467467
pub mut:
468468
subimage [sg_cubeface_num][sg_max_mipmaps]Range
469469
}
@@ -485,7 +485,7 @@ pub:
485485

486486
pub type Features = C.sg_features
487487

488-
struct C.sg_limits {
488+
pub struct C.sg_limits {
489489
pub:
490490
max_image_size_2d u32 // max width/height of SG_IMAGETYPE_2D images
491491
max_image_size_cube u32 // max width/height of SG_IMAGETYPE_CUBE images
@@ -497,15 +497,15 @@ pub:
497497

498498
pub type Limits = C.sg_limits
499499

500-
struct C.sg_layout_desc {
500+
pub struct C.sg_layout_desc {
501501
pub mut:
502502
buffers [8]BufferLayoutDesc
503503
attrs [16]VertexAttrDesc
504504
}
505505

506506
pub type LayoutDesc = C.sg_layout_desc
507507

508-
struct C.sg_buffer_layout_desc {
508+
pub struct C.sg_buffer_layout_desc {
509509
pub mut:
510510
stride int
511511
step_func VertexStep
@@ -514,7 +514,7 @@ pub mut:
514514

515515
pub type BufferLayoutDesc = C.sg_buffer_layout_desc
516516

517-
struct C.sg_vertex_attr_desc {
517+
pub struct C.sg_vertex_attr_desc {
518518
pub mut:
519519
buffer_index int
520520
offset int
@@ -583,23 +583,23 @@ pub fn (mut action C.sg_color_attachment_action) set_color_values(r, g, b, a f32
583583
action.val[3] = a
584584
}
585585
*/
586-
struct C.sg_depth_attachment_action {
586+
pub struct C.sg_depth_attachment_action {
587587
pub mut:
588588
action Action
589589
value f32
590590
}
591591

592592
pub type DepthAttachmentAction = C.sg_depth_attachment_action
593593

594-
struct C.sg_stencil_attachment_action {
594+
pub struct C.sg_stencil_attachment_action {
595595
pub mut:
596596
action Action
597597
value u8
598598
}
599599

600600
pub type StencilAttachmentAction = C.sg_stencil_attachment_action
601601

602-
struct C.sg_pixelformat_info {
602+
pub struct C.sg_pixelformat_info {
603603
pub:
604604
sample bool // pixel format can be sampled in shaders
605605
filter bool // pixel format can be sampled with filtering

0 commit comments

Comments
 (0)