Fix the vertex attribute bindings
This commit is contained in:
parent
4ff328e074
commit
68489d6bf0
6 changed files with 38 additions and 23 deletions
|
|
@ -249,7 +249,6 @@ void VkRenderState::ApplyRenderPass(int dt)
|
|||
VkPipelineKey pipelineKey;
|
||||
pipelineKey.DrawType = dt;
|
||||
pipelineKey.DrawLine = mDrawLine || mWireframe;
|
||||
pipelineKey.VertexFormat = mVertexBuffer ? static_cast<VkHardwareVertexBuffer*>(mVertexBuffer)->VertexFormat : mRSBuffers->Flatbuffer.VertexFormat;
|
||||
pipelineKey.RenderStyle = mRenderStyle;
|
||||
pipelineKey.DepthTest = mDepthTest && !mWireframe;
|
||||
pipelineKey.DepthWrite = mDepthTest && !mWireframe && mDepthWrite;
|
||||
|
|
@ -260,6 +259,7 @@ void VkRenderState::ApplyRenderPass(int dt)
|
|||
pipelineKey.StencilPassOp = mStencilOp;
|
||||
pipelineKey.ColorMask = mColorMask;
|
||||
pipelineKey.CullMode = mCullMode;
|
||||
pipelineKey.ShaderKey.VertexFormat = mVertexBuffer ? static_cast<VkHardwareVertexBuffer*>(mVertexBuffer)->VertexFormat : mRSBuffers->Flatbuffer.VertexFormat;
|
||||
if (mSpecialEffect > EFF_NONE)
|
||||
{
|
||||
pipelineKey.ShaderKey.SpecialEffect = mSpecialEffect;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue