Skip to content

Commit

Permalink
examples: fix simple_shader compile error, add 2 shader examples to…
Browse files Browse the repository at this point in the history
… CI (#21112)
  • Loading branch information
Larpon committed Mar 27, 2024
1 parent 8997c51 commit 22744ce
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/tools/modules/testing/common.v
Expand Up @@ -282,12 +282,12 @@ pub fn new_test_session(_vargs string, will_compile bool) TestSession {
if testing.github_job != 'misc-tooling' {
// These examples need .h files that are produced from the supplied .glsl files,
// using by the shader compiler tools in https://github.com/floooh/sokol-tools-bin/archive/pre-feb2021-api-changes.tar.gz
skip_files << 'examples/sokol/simple_shader_glsl/simple_shader.v'
skip_files << 'examples/sokol/sdf/sdf.v'
skip_files << 'examples/sokol/02_cubes_glsl/cube_glsl.v'
skip_files << 'examples/sokol/03_march_tracing_glsl/rt_glsl.v'
skip_files << 'examples/sokol/04_multi_shader_glsl/rt_glsl.v'
skip_files << 'examples/sokol/05_instancing_glsl/rt_glsl.v'
skip_files << 'examples/sokol/07_simple_shader_glsl/simple_shader.v'
skip_files << 'examples/sokol/08_sdf/sdf.v'
// Skip obj_viewer code in the CI
skip_files << 'examples/sokol/06_obj_viewer/show_obj.v'
// skip the audio examples too on most CI jobs
Expand Down
Expand Up @@ -143,7 +143,7 @@ fn cleanup(user_data voidptr) {
fn frame(user_data voidptr) {
mut app := unsafe { &App(user_data) }

pass := sapp.create_default_pass(state.pass_action)
pass := sapp.create_default_pass(app.pass_action)
gfx.begin_pass(&pass)

gfx.apply_pipeline(app.shader_pipeline)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 22744ce

Please sign in to comment.