diff --git a/lgc/builder/InOutBuilder.cpp b/lgc/builder/InOutBuilder.cpp index a6df7c0eac..d7dc608020 100644 --- a/lgc/builder/InOutBuilder.cpp +++ b/lgc/builder/InOutBuilder.cpp @@ -821,7 +821,7 @@ Value *BuilderImpl::CreateReadBuiltInInput(BuiltInKind builtIn, InOutInfo inputI assert(isBuiltInInput(builtIn)); Value *builtInVal = readBuiltIn(false, builtIn, inputInfo, vertexIndex, index, instName); if (builtIn == BuiltInViewIndex) - // View index can only use bit[3:0] of view id register. + // View index can only use bit[3:0] of view ID register. builtInVal = CreateAnd(builtInVal, getInt32(0xF)); return builtInVal; } diff --git a/lgc/patch/MeshTaskShader.cpp b/lgc/patch/MeshTaskShader.cpp index 27a6ef46e3..f6c6b24e8c 100644 --- a/lgc/patch/MeshTaskShader.cpp +++ b/lgc/patch/MeshTaskShader.cpp @@ -1767,14 +1767,14 @@ void MeshTaskShader::exportPrimitive() { const auto entryArgIdxs = m_pipelineState->getShaderInterfaceData(ShaderStageMesh)->entryArgIdxs.mesh; Value *viewId = getFunctionArgument(entryPoint, entryArgIdxs.viewId); - // RT layer id is view id in simple mode (view index only). + // RT layer is view ID in simple mode (view index only). Value *layerFromViewId = viewId; if (m_pipelineState->getInputAssemblyState().multiView == MultiViewMode::PerView) { - // RT layer id is in the high 24 bits of view id in per-view mode. + // RT layer is in the high 24 bits of view ID in per-view mode. layerFromViewId = m_builder.CreateLShr(viewId, m_builder.getInt32(8)); if (layer) layerFromViewId = m_builder.CreateAdd(layerFromViewId, layer); - // Viewport index is in [7:4] of view id. + // Viewport index is in [7:4] of view ID. Value *viewportIndexFromViewId = m_builder.CreateAnd(m_builder.CreateLShr(viewId, m_builder.getInt32(4)), m_builder.getInt32(0xF)); if (viewportIndex)