Archived
1
Fork 0

Remove, cleanup some constructors

This commit is contained in:
Joshua Goins 2022-02-21 00:14:12 -05:00
parent e13af96a72
commit 4d9a333781
4 changed files with 3 additions and 6 deletions

View file

@ -17,14 +17,14 @@ struct CameraFrustum;
class ShadowPass {
public:
ShadowPass(GFX* gfx);
explicit ShadowPass(GFX* gfx);
void create_scene_resources(Scene& scene);
void render(GFXCommandBuffer* command_buffer, Scene& scene);
private:
void render_meshes(GFXCommandBuffer* command_buffer, Scene& scene, const Matrix4x4 light_matrix, const Matrix4x4 model, const prism::float3 light_position, const Light::Type type, const CameraFrustum& frustum, const int base_instance);
void render_meshes(GFXCommandBuffer* command_buffer, Scene& scene, Matrix4x4 light_matrix, Matrix4x4 model, prism::float3 light_position, Light::Type type, const CameraFrustum& frustum, int base_instance);
void render_sun(GFXCommandBuffer* command_buffer, Scene& scene, prism::Object light_object, Light& light);
void render_spot(GFXCommandBuffer* command_buffer, Scene& scene, prism::Object light_object, Light& light);

View file

@ -17,7 +17,7 @@ namespace prism {
class SMAAPass {
public:
SMAAPass(GFX* gfx);
explicit SMAAPass(GFX* gfx);
void create_render_target_resources(RenderTarget& target);

View file

@ -44,7 +44,6 @@ public:
class ShaderSource {
public:
ShaderSource() : source(std::monostate()) {}
ShaderSource(const ShaderSource& rhs) : source (rhs.source) {}
explicit ShaderSource(const std::string& source_string) : source(source_string) {}
explicit ShaderSource(const std::vector<uint32_t>& source_bytecode) : source(source_bytecode) {}
explicit ShaderSource(const prism::path& shader_path) : source(shader_path) {}

View file

@ -6,8 +6,6 @@
class Command {
public:
virtual ~Command() {}
std::string stored_name;
std::string get_name() {