Skip to content

Commit eecdfd7

Browse files
committed
Remove some comments
1 parent ff05a25 commit eecdfd7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples_tests/18.MitsubaLoader/main.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,6 @@ int main()
470470
modifiedShaders.insert({ core::smart_refctd_ptr<asset::ICPUSpecializedShader>(fs),newfs });
471471
pipeline->setShaderAtStage(asset::ICPUSpecializedShader::ESS_FRAGMENT, newfs.get());
472472
}
473-
// invert what is recognized as frontface in case of RH camera
474-
pipeline->getRasterizationParams().frontFaceIsCCW = !leftHandedCamera;
475473

476474
auto pc = core::make_refctd_dynamic_array<core::smart_refctd_dynamic_array<asset::SPushConstantRange>>(1u);
477475
(*pc)[0] = pcr;
@@ -761,7 +759,7 @@ int main()
761759
const video::IGPUDescriptorSet* ds[3]{ gpuds0.get(), gpuds1.get(), gpuds2.get() };
762760
driver->bindGraphicsPipeline(pipeline);
763761
driver->bindDescriptorSets(video::EPBP_GRAPHICS, pipeline->getLayout(), 0u, 3u, ds, nullptr);
764-
driver->pushConstants(pipeline->getLayout(), video::IGPUSpecializedShader::ESS_VERTEX|video::IGPUSpecializedShader::ESS_FRAGMENT, 0u, sizeof(uint32_t), mb->getPushConstantsDataPtr());
762+
driver->pushConstants(pipeline->getLayout(), video::IGPUSpecializedShader::ESS_VERTEX|video::IGPUSpecializedShader::ESS_FRAGMENT, 0u, sizeof(float), mb->getPushConstantsDataPtr());
765763

766764
driver->drawMeshBuffer(mb);
767765
}

src/nbl/ext/MitsubaLoader/CMitsubaLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ static core::smart_refctd_ptr<asset::ICPUImage> createBlendWeightImage(const ass
691691

692692
core::smart_refctd_ptr<asset::ICPUPipelineLayout> CMitsubaLoader::createPipelineLayout(asset::IAssetManager* _manager, asset::ICPUVirtualTexture* _vt)
693693
{
694-
core::smart_refctd_ptr<ICPUDescriptorSetLayout> ds0layout; // needs to builtin and cached statically
694+
core::smart_refctd_ptr<ICPUDescriptorSetLayout> ds0layout;
695695
{
696696
auto sizes = _vt->getDSlayoutBindings(nullptr, nullptr);
697697
auto bindings = core::make_refctd_dynamic_array<core::smart_refctd_dynamic_array<asset::ICPUDescriptorSetLayout::SBinding>>(sizes.first + DS0_BINDING_COUNT_WO_VT);

0 commit comments

Comments
 (0)