Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
prism/engine/utility/include/render_constants.hpp
Joshua Goins 3229c4fa2c Another big WebGPU compatibility patch
All specialization constants are removed (they cause trouble in
WebGPU, since they don't support array sizing, and it was a pain
in Metal anyway) - they are now macro defined. WebGPU now runs, although
push constant emulation is not implemented yet.
2022-03-07 00:33:44 -05:00

6 lines
180 B
C++

#pragma once
constexpr int max_scene_materials = 25, max_scene_lights = 25;
const int max_spot_shadows = 4;
const int max_point_shadows = 4;
const int max_environment_probes = 4;