diff options
| author | 2019-09-18 01:07:01 -0300 | |
|---|---|---|
| committer | 2019-09-21 17:32:48 -0300 | |
| commit | 675f23aedc9a3a99925068e952cbcb3faf88296a (patch) | |
| tree | 01b3101c3837428903bb91f29d02fa2c099468a6 /src/video_core/shader/node.h | |
| parent | shader_bytecode: Add SULD encoding (diff) | |
| download | yuzu-675f23aedc9a3a99925068e952cbcb3faf88296a.tar.gz yuzu-675f23aedc9a3a99925068e952cbcb3faf88296a.tar.xz yuzu-675f23aedc9a3a99925068e952cbcb3faf88296a.zip | |
shader/image: Implement SULD and remove irrelevant code
* Implement SULD as float.
* Remove conditional declaration of GL_ARB_shader_viewport_layer_array.
Diffstat (limited to 'src/video_core/shader/node.h')
| -rw-r--r-- | src/video_core/shader/node.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/shader/node.h b/src/video_core/shader/node.h index abf2cb1ab..e5b75783d 100644 --- a/src/video_core/shader/node.h +++ b/src/video_core/shader/node.h | |||
| @@ -149,7 +149,8 @@ enum class OperationCode { | |||
| 149 | TextureQueryLod, /// (MetaTexture, float[N] coords) -> float4 | 149 | TextureQueryLod, /// (MetaTexture, float[N] coords) -> float4 |
| 150 | TexelFetch, /// (MetaTexture, int[N], int) -> float4 | 150 | TexelFetch, /// (MetaTexture, int[N], int) -> float4 |
| 151 | 151 | ||
| 152 | ImageStore, /// (MetaImage, int[N] values) -> void | 152 | ImageLoad, /// (MetaImage, int[N] coords) -> void |
| 153 | ImageStore, /// (MetaImage, int[N] coords) -> void | ||
| 153 | AtomicImageAdd, /// (MetaImage, int[N] coords) -> void | 154 | AtomicImageAdd, /// (MetaImage, int[N] coords) -> void |
| 154 | AtomicImageMin, /// (MetaImage, int[N] coords) -> void | 155 | AtomicImageMin, /// (MetaImage, int[N] coords) -> void |
| 155 | AtomicImageMax, /// (MetaImage, int[N] coords) -> void | 156 | AtomicImageMax, /// (MetaImage, int[N] coords) -> void |
| @@ -402,6 +403,7 @@ struct MetaTexture { | |||
| 402 | struct MetaImage { | 403 | struct MetaImage { |
| 403 | const Image& image; | 404 | const Image& image; |
| 404 | std::vector<Node> values; | 405 | std::vector<Node> values; |
| 406 | u32 element{}; | ||
| 405 | }; | 407 | }; |
| 406 | 408 | ||
| 407 | /// Parameters that modify an operation but are not part of any particular operand | 409 | /// Parameters that modify an operation but are not part of any particular operand |