Skip to content

Commit

Permalink
PBR Renderer: fixed missing PSO flag for the normal VS attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Nov 9, 2024
1 parent c490de0 commit 20abb7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PBR/src/PBR_Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1455,8 +1455,8 @@ void PBR_Renderer::GetVSInputStructAndLayout(PSO_FLAGS PSOFlags,
// clang-format off
constexpr VSAttribInfo VSPosAttrib {VERTEX_ATTRIB_ID_POSITION, "Pos", VT_FLOAT32, 3, PSO_FLAG_NONE};
constexpr VSAttribInfo VSPosPack64Attrib{VERTEX_ATTRIB_ID_POSITION, "Pos", VT_UINT32, 2, PSO_FLAG_NONE};
constexpr VSAttribInfo VSNormAttrib {VERTEX_ATTRIB_ID_NORMAL, "Normal", VT_FLOAT32, 3, PSO_FLAG_NONE};
constexpr VSAttribInfo VSNormPackAttrib {VERTEX_ATTRIB_ID_NORMAL, "Normal", VT_UINT32, 1, PSO_FLAG_NONE};
constexpr VSAttribInfo VSNormAttrib {VERTEX_ATTRIB_ID_NORMAL, "Normal", VT_FLOAT32, 3, PSO_FLAG_USE_VERTEX_NORMALS};
constexpr VSAttribInfo VSNormPackAttrib {VERTEX_ATTRIB_ID_NORMAL, "Normal", VT_UINT32, 1, PSO_FLAG_USE_VERTEX_NORMALS};
// clang-format on

const std::array<VSAttribInfo, 8> VSAttribs = //
Expand Down

0 comments on commit 20abb7f

Please sign in to comment.