diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-06-26 12:48:28 -0700 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2021-12-18 15:21:48 -0800 |
| commit | 27cb7044669c62922be6f68913007d2567ce2480 (patch) | |
| tree | d976e86d2b88e2ef9b0a005e65d0776645d67316 /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | 1a964891f83ef9332c425dd69fe2f277b8ceb992 (diff) | |
Eliminate VarType for ComponentFormat
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 16d36f7453..31cfd36aee 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -986,9 +986,9 @@ bool Renderer::InitializeImGui() ImGui::GetStyle().WindowRounding = 7.0f; PortableVertexDeclaration vdecl = {}; - vdecl.position = {VAR_FLOAT, 2, offsetof(ImDrawVert, pos), true, false}; - vdecl.texcoords[0] = {VAR_FLOAT, 2, offsetof(ImDrawVert, uv), true, false}; - vdecl.colors[0] = {VAR_UNSIGNED_BYTE, 4, offsetof(ImDrawVert, col), true, false}; + vdecl.position = {ComponentFormat::Float, 2, offsetof(ImDrawVert, pos), true, false}; + vdecl.texcoords[0] = {ComponentFormat::Float, 2, offsetof(ImDrawVert, uv), true, false}; + vdecl.colors[0] = {ComponentFormat::UByte, 4, offsetof(ImDrawVert, col), true, false}; vdecl.stride = sizeof(ImDrawVert); m_imgui_vertex_format = CreateNativeVertexFormat(vdecl); if (!m_imgui_vertex_format) |
