summaryrefslogtreecommitdiff
path: root/examples/cube/ex_cube.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cube/ex_cube.c')
-rw-r--r--examples/cube/ex_cube.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/cube/ex_cube.c b/examples/cube/ex_cube.c
index e85b5c1..8789b00 100644
--- a/examples/cube/ex_cube.c
+++ b/examples/cube/ex_cube.c
@@ -142,11 +142,7 @@ int main() {
mvp_uniforms mvp_data = { .model = model, .view = view, .projection = proj };
my_shader_bind_group shader_bind_data = { .mvp = mvp_data, .tex = texture };
mvp_uniforms_data.data = &shader_bind_data;
- /* encode_bind_shader_data(enc, 0, &mvp_uniforms_data); */
-
- uniform_mat4f(enc->pipeline->shader_id, "model", &model);
- uniform_mat4f(enc->pipeline->shader_id, "view", &view);
- uniform_mat4f(enc->pipeline->shader_id, "projection", &proj);
+ encode_bind_shader_data(enc, 0, &mvp_uniforms_data);
// Record draw calls
draw_mesh(&cube, &model);