mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
examples: fix simple_shader
compile error, add 2 shader examples to CI (#21112)
This commit is contained in:
parent
8997c515c5
commit
22744ce495
9 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue