WIP Refactoring to generalize shader value reflection

This commit is contained in:
2025-08-23 14:59:08 -07:00
parent 9df960d181
commit 6739e9c1a5
12 changed files with 331 additions and 255 deletions

View File

@@ -165,7 +165,7 @@ void KRSprite::render(RenderInfo& ri)
info.modelFormat = ModelFormat::KRENGINE_MODEL_FORMAT_STRIP;
KRPipeline* pShader = getContext().getPipelineManager()->getPipeline(*ri.surface, info);
pShader->setPushConstant(KRPipeline::PushConstant::material_alpha, m_spriteAlpha);
pShader->setPushConstant(ShaderValue::material_alpha, m_spriteAlpha);
pShader->setImageBinding("diffuseTexture", m_pSpriteTexture, m_pContext->getSamplerManager()->DEFAULT_CLAMPED_SAMPLER);
pShader->bind(ri, getModelMatrix());