|
|
@ -28,6 +28,9 @@ namespace FidelityFX |
|
|
private ComputeBuffer _rcasConstantsBuffer; |
|
|
private ComputeBuffer _rcasConstantsBuffer; |
|
|
private readonly RcasConstants[] _rcasConstantsArray = new RcasConstants[1]; |
|
|
private readonly RcasConstants[] _rcasConstantsArray = new RcasConstants[1]; |
|
|
|
|
|
|
|
|
|
|
|
private ComputeBuffer _generateReactiveConstantsBuffer; |
|
|
|
|
|
private readonly GenerateReactiveConstants[] _generateReactiveConstantsArray = { new GenerateReactiveConstants() }; |
|
|
|
|
|
|
|
|
public void Create(Fsr2.ContextDescription contextDescription) |
|
|
public void Create(Fsr2.ContextDescription contextDescription) |
|
|
{ |
|
|
{ |
|
|
_contextDescription = contextDescription; |
|
|
_contextDescription = contextDescription; |
|
|
@ -152,6 +155,15 @@ namespace FidelityFX |
|
|
public uint workGroupOffsetX, workGroupOffsetY; |
|
|
public uint workGroupOffsetX, workGroupOffsetY; |
|
|
public uint renderSizeX, renderSizeY; |
|
|
public uint renderSizeX, renderSizeY; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Serializable, StructLayout(LayoutKind.Sequential)] |
|
|
|
|
|
private struct GenerateReactiveConstants |
|
|
|
|
|
{ |
|
|
|
|
|
public float scale; |
|
|
|
|
|
public float threshold; |
|
|
|
|
|
public float binaryValue; |
|
|
|
|
|
public uint flags; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
[Serializable, StructLayout(LayoutKind.Sequential)] |
|
|
[Serializable, StructLayout(LayoutKind.Sequential)] |
|
|
private struct RcasConstants |
|
|
private struct RcasConstants |
|
|
|