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.
6 lines
180 B
C++
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;
|