mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-11-19 08:40:54 -05:00
misc: chore: Use explicit types in GPU, Device, and Host1x projects
This commit is contained in:
@@ -33,7 +33,7 @@ namespace Ryujinx.Graphics.Gpu.Shader
|
||||
ref GpuChannelGraphicsState graphicsState,
|
||||
out CachedShaderProgram program)
|
||||
{
|
||||
foreach (var entry in _entries)
|
||||
foreach (CachedShaderProgram entry in _entries)
|
||||
{
|
||||
bool vertexAsCompute = entry.VertexAsCompute != null;
|
||||
bool usesDrawParameters = entry.Shaders[1]?.Info.UsesDrawParameters ?? false;
|
||||
@@ -65,7 +65,7 @@ namespace Ryujinx.Graphics.Gpu.Shader
|
||||
/// <returns>True if a compatible program is found, false otherwise</returns>
|
||||
public bool TryFindForCompute(GpuChannel channel, GpuChannelPoolState poolState, GpuChannelComputeState computeState, out CachedShaderProgram program)
|
||||
{
|
||||
foreach (var entry in _entries)
|
||||
foreach (CachedShaderProgram entry in _entries)
|
||||
{
|
||||
if (entry.SpecializationState.MatchesCompute(channel, ref poolState, computeState, true))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user