mirror of
https://git.zaroz.cloud/nintendo-back-up/Ryujinx.git
synced 2025-12-24 19:22:59 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93d78f9ac4 | ||
|
|
cd7b52f995 | ||
|
|
7f96dbc024 | ||
|
|
3e5c211394 |
@@ -20,6 +20,11 @@ namespace Ryujinx.Audio.Renderer.Dsp
|
|||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public static int GetBufferSize<T>(int startSampleOffset, int endSampleOffset, int offset, int count) where T : unmanaged
|
public static int GetBufferSize<T>(int startSampleOffset, int endSampleOffset, int offset, int count) where T : unmanaged
|
||||||
{
|
{
|
||||||
|
if (endSampleOffset < startSampleOffset)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return GetCountToDecode(startSampleOffset, endSampleOffset, offset, count) * Unsafe.SizeOf<T>();
|
return GetCountToDecode(startSampleOffset, endSampleOffset, offset, count) * Unsafe.SizeOf<T>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -264,8 +264,8 @@ namespace Ryujinx.Audio.Renderer.Parameter
|
|||||||
{
|
{
|
||||||
uint dataTypeSize = (uint)Unsafe.SizeOf<T>();
|
uint dataTypeSize = (uint)Unsafe.SizeOf<T>();
|
||||||
|
|
||||||
return StartSampleOffset * dataTypeSize <= Size &&
|
return (ulong)StartSampleOffset * dataTypeSize <= Size &&
|
||||||
EndSampleOffset * dataTypeSize <= Size;
|
(ulong)EndSampleOffset * dataTypeSize <= Size;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -465,6 +465,7 @@
|
|||||||
Maximum="1"
|
Maximum="1"
|
||||||
TickFrequency="0.01"
|
TickFrequency="0.01"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
|
SmallChange="0.01"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
Value="{ReflectionBinding Configuration.DeadzoneLeft, Mode=TwoWay}" />
|
Value="{ReflectionBinding Configuration.DeadzoneLeft, Mode=TwoWay}" />
|
||||||
<TextBlock
|
<TextBlock
|
||||||
@@ -484,6 +485,7 @@
|
|||||||
Maximum="2"
|
Maximum="2"
|
||||||
TickFrequency="0.01"
|
TickFrequency="0.01"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
|
SmallChange="0.01"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
Value="{ReflectionBinding Configuration.RangeLeft, Mode=TwoWay}" />
|
Value="{ReflectionBinding Configuration.RangeLeft, Mode=TwoWay}" />
|
||||||
<TextBlock
|
<TextBlock
|
||||||
@@ -607,6 +609,7 @@
|
|||||||
Maximum="1"
|
Maximum="1"
|
||||||
TickFrequency="0.01"
|
TickFrequency="0.01"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
|
SmallChange="0.01"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
Value="{ReflectionBinding Configuration.TriggerThreshold, Mode=TwoWay}" />
|
Value="{ReflectionBinding Configuration.TriggerThreshold, Mode=TwoWay}" />
|
||||||
<TextBlock
|
<TextBlock
|
||||||
@@ -1085,6 +1088,7 @@
|
|||||||
Maximum="1"
|
Maximum="1"
|
||||||
TickFrequency="0.01"
|
TickFrequency="0.01"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
|
SmallChange="0.01"
|
||||||
Padding="0"
|
Padding="0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
@@ -1106,6 +1110,7 @@
|
|||||||
Maximum="2"
|
Maximum="2"
|
||||||
TickFrequency="0.01"
|
TickFrequency="0.01"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
|
SmallChange="0.01"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
Value="{ReflectionBinding Configuration.RangeRight, Mode=TwoWay}" />
|
Value="{ReflectionBinding Configuration.RangeRight, Mode=TwoWay}" />
|
||||||
<TextBlock
|
<TextBlock
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
MaxWidth="150"
|
MaxWidth="150"
|
||||||
TickFrequency="0.01"
|
TickFrequency="0.01"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
|
SmallChange="0.01"
|
||||||
Maximum="100"
|
Maximum="100"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
Value="{Binding Sensitivity, Mode=TwoWay}" />
|
Value="{Binding Sensitivity, Mode=TwoWay}" />
|
||||||
@@ -50,6 +51,7 @@
|
|||||||
MaxWidth="150"
|
MaxWidth="150"
|
||||||
TickFrequency="0.01"
|
TickFrequency="0.01"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
|
SmallChange="0.01"
|
||||||
Maximum="100"
|
Maximum="100"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
Value="{Binding GyroDeadzone, Mode=TwoWay}" />
|
Value="{Binding GyroDeadzone, Mode=TwoWay}" />
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
Width="200"
|
Width="200"
|
||||||
TickFrequency="0.01"
|
TickFrequency="0.01"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
|
SmallChange="0.01"
|
||||||
Maximum="10"
|
Maximum="10"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
Value="{Binding StrongRumble, Mode=TwoWay}" />
|
Value="{Binding StrongRumble, Mode=TwoWay}" />
|
||||||
@@ -47,6 +48,7 @@
|
|||||||
Maximum="10"
|
Maximum="10"
|
||||||
TickFrequency="0.01"
|
TickFrequency="0.01"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
|
SmallChange="0.01"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
Value="{Binding WeakRumble, Mode=TwoWay}" />
|
Value="{Binding WeakRumble, Mode=TwoWay}" />
|
||||||
<TextBlock
|
<TextBlock
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
Margin="5,-10,5,0"
|
Margin="5,-10,5,0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
|
SmallChange="1"
|
||||||
Maximum="4"
|
Maximum="4"
|
||||||
Minimum="1"
|
Minimum="1"
|
||||||
TickFrequency="1"
|
TickFrequency="1"
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache
|
|||||||
private const ushort FileFormatVersionMajor = 1;
|
private const ushort FileFormatVersionMajor = 1;
|
||||||
private const ushort FileFormatVersionMinor = 2;
|
private const ushort FileFormatVersionMinor = 2;
|
||||||
private const uint FileFormatVersionPacked = ((uint)FileFormatVersionMajor << 16) | FileFormatVersionMinor;
|
private const uint FileFormatVersionPacked = ((uint)FileFormatVersionMajor << 16) | FileFormatVersionMinor;
|
||||||
private const uint CodeGenVersion = 5540;
|
private const uint CodeGenVersion = 5609;
|
||||||
|
|
||||||
private const string SharedTocFileName = "shared.toc";
|
private const string SharedTocFileName = "shared.toc";
|
||||||
private const string SharedDataFileName = "shared.data";
|
private const string SharedDataFileName = "shared.data";
|
||||||
|
|||||||
@@ -434,6 +434,11 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
|
|||||||
|
|
||||||
context.Decorate(perVertexStructType, Decoration.Block);
|
context.Decorate(perVertexStructType, Decoration.Block);
|
||||||
|
|
||||||
|
if (context.HostCapabilities.ReducedPrecision)
|
||||||
|
{
|
||||||
|
context.MemberDecorate(perVertexStructType, 0, Decoration.Invariant);
|
||||||
|
}
|
||||||
|
|
||||||
context.MemberDecorate(perVertexStructType, 0, Decoration.BuiltIn, (LiteralInteger)BuiltIn.Position);
|
context.MemberDecorate(perVertexStructType, 0, Decoration.BuiltIn, (LiteralInteger)BuiltIn.Position);
|
||||||
context.MemberDecorate(perVertexStructType, 1, Decoration.BuiltIn, (LiteralInteger)BuiltIn.PointSize);
|
context.MemberDecorate(perVertexStructType, 1, Decoration.BuiltIn, (LiteralInteger)BuiltIn.PointSize);
|
||||||
context.MemberDecorate(perVertexStructType, 2, Decoration.BuiltIn, (LiteralInteger)BuiltIn.ClipDistance);
|
context.MemberDecorate(perVertexStructType, 2, Decoration.BuiltIn, (LiteralInteger)BuiltIn.ClipDistance);
|
||||||
|
|||||||
@@ -31,7 +31,10 @@ namespace Ryujinx.Horizon.Sdk.Sf.Hipc
|
|||||||
|
|
||||||
if (allocator != null)
|
if (allocator != null)
|
||||||
{
|
{
|
||||||
_pointerBuffersBaseAddress = allocator.Allocate((ulong)maxSessions * (ulong)options.PointerBufferSize);
|
if (options.PointerBufferSize != 0)
|
||||||
|
{
|
||||||
|
_pointerBuffersBaseAddress = allocator.Allocate((ulong)maxSessions * (ulong)options.PointerBufferSize);
|
||||||
|
}
|
||||||
|
|
||||||
if (options.CanDeferInvokeRequest)
|
if (options.CanDeferInvokeRequest)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user