Skip to content

Commit

Permalink
Fix particle engine plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
edunad committed Nov 12, 2024
1 parent 6b31088 commit 1145cb8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rawrbox.render/src/plugins/particle_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ namespace rawrbox {

void ParticleEnginePlugin::createSignatures() {
if (this->_signature != nullptr || this->_signatureBind != nullptr) RAWRBOX_CRITICAL("Signatures already bound!");
if (rawrbox::MAIN_CAMERA == nullptr) RAWRBOX_CRITICAL("Clustered plugin requires at least one camera!");

std::vector<Diligent::PipelineResourceDesc> resources = {
// CAMERA ------
Expand Down Expand Up @@ -76,8 +75,6 @@ namespace rawrbox {
}

void ParticleEnginePlugin::createPipelines() {
if (rawrbox::MAIN_CAMERA == nullptr) RAWRBOX_CRITICAL("Particle engine plugin requires at least one camera!");

rawrbox::PipeComputeSettings settings;
settings.signatures = {this->_signature};

Expand All @@ -88,7 +85,7 @@ namespace rawrbox {
}

void ParticleEnginePlugin::upload() {
if (this->_signature == nullptr || this->_signatureBind == nullptr || this->_uniforms == nullptr) RAWRBOX_CRITICAL("Plugin not initialized!");
if (this->_signature == nullptr || this->_dynamicSignature == nullptr || this->_uniforms == nullptr) RAWRBOX_CRITICAL("Plugin not initialized!");

// Compute bind ---
this->_signature->GetStaticVariableByName(Diligent::SHADER_TYPE_COMPUTE, "Camera")->Set(rawrbox::CameraBase::uniforms);
Expand Down

0 comments on commit 1145cb8

Please sign in to comment.