Support configurable point size (#916)
This commit is contained in:
parent
a1a5341baf
commit
f373f870f7
4 changed files with 24 additions and 0 deletions
|
@ -161,6 +161,11 @@ namespace Ryujinx.Graphics.Gpu.Engine
|
|||
UpdateVertexAttribState(state);
|
||||
}
|
||||
|
||||
if (state.QueryModified(MethodOffset.PointSize))
|
||||
{
|
||||
UpdatePointSizeState(state);
|
||||
}
|
||||
|
||||
if (state.QueryModified(MethodOffset.PrimitiveRestartState))
|
||||
{
|
||||
UpdatePrimitiveRestartState(state);
|
||||
|
@ -507,6 +512,17 @@ namespace Ryujinx.Graphics.Gpu.Engine
|
|||
_context.Renderer.Pipeline.SetVertexAttribs(vertexAttribs);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates host point size based on guest GPU state.
|
||||
/// </summary>
|
||||
/// <param name="state">Current GPU state</param>
|
||||
private void UpdatePointSizeState(GpuState state)
|
||||
{
|
||||
float size = state.Get<float>(MethodOffset.PointSize);
|
||||
|
||||
_context.Renderer.Pipeline.SetPointSize(size);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates host primitive restart based on guest GPU state.
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue