diff options
Diffstat (limited to 'src/effects/rotating_cube_effect.cc')
| -rw-r--r-- | src/effects/rotating_cube_effect.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/effects/rotating_cube_effect.cc b/src/effects/rotating_cube_effect.cc index a91bc78..c892dfe 100644 --- a/src/effects/rotating_cube_effect.cc +++ b/src/effects/rotating_cube_effect.cc @@ -1,11 +1,11 @@ // This file is part of the 64k demo project. -// It implements RotatingCube (simplified v2 port). +// It implements RotatingCube. #include "util/fatal_error.h" #include "effects/rotating_cube_effect.h" #include "gpu/bind_group_builder.h" #include "gpu/gpu.h" -#include "gpu/shaders.h" +#include "effects/shaders.h" RotatingCube::RotatingCube(const GpuContext& ctx, const std::vector<std::string>& inputs, @@ -39,10 +39,10 @@ RotatingCube::RotatingCube(const GpuContext& ctx, WGPUPipelineLayout pipeline_layout = wgpuDeviceCreatePipelineLayout(ctx_.device, &pl_desc); - // Load shader (TODO: create rotating_cube_v2.wgsl) + // Load shader WGPUShaderSourceWGSL wgsl_src = {}; wgsl_src.chain.sType = WGPUSType_ShaderSourceWGSL; - wgsl_src.code = str_view(rotating_cube_v2_wgsl); + wgsl_src.code = str_view(rotating_cube_wgsl); WGPUShaderModuleDescriptor shader_desc = {}; shader_desc.nextInChain = &wgsl_src.chain; |
