mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-27 04:23:01 +00:00
1623ab524f
* Improve Buffer Textures and flush Image Stores Fixes a number of issues with buffer textures: - Reworked Buffer Textures to create their buffers in the TextureManager, then bind them with the BufferManager later. - Fixes an issue where a buffer texture's buffer could be invalidated after it is bound, but before use. - Fixed width unpacking for large buffer textures. The width is now 32-bit rather than 16. - Force buffer textures to be rebound whenever any buffer is created, as using the handle id wasn't reliable, and the cost of binding isn't too high. Fixes vertex explosions and flickering animations in UE4 games. * Set ImageStore flag... for ImageStore. * Check the offset and size.
18 lines
412 B
C#
18 lines
412 B
C#
using System;
|
|
|
|
namespace Ryujinx.Graphics.Shader
|
|
{
|
|
/// <summary>
|
|
/// Flags that indicate how a texture will be used in a shader.
|
|
/// </summary>
|
|
[Flags]
|
|
public enum TextureUsageFlags
|
|
{
|
|
None = 0,
|
|
|
|
// Integer sampled textures must be noted for resolution scaling.
|
|
ResScaleUnsupported = 1 << 0,
|
|
NeedsScaleValue = 1 << 1,
|
|
ImageStore = 1 << 2
|
|
}
|
|
}
|