summaryrefslogtreecommitdiff
path: root/src/video_core/shader/node.h
diff options
context:
space:
mode:
authorGravatar bunnei2019-12-06 18:18:16 -0500
committerGravatar GitHub2019-12-06 18:18:16 -0500
commite36814d6d592167cbb9c5440cb7b1f9bbb33449c (patch)
treefb93c0eeaa46d1ee738f9373cbb1b858e79ca37a /src/video_core/shader/node.h
parentMerge pull request #3196 from jmerdich/fix-ea-source-build (diff)
parentShader_IR: Address Feedback (diff)
downloadyuzu-e36814d6d592167cbb9c5440cb7b1f9bbb33449c.tar.gz
yuzu-e36814d6d592167cbb9c5440cb7b1f9bbb33449c.tar.xz
yuzu-e36814d6d592167cbb9c5440cb7b1f9bbb33449c.zip
Merge pull request #3109 from FernandoS27/new-instr
Implement FLO & TXD Instructions on GPU Shaders
Diffstat (limited to 'src/video_core/shader/node.h')
-rw-r--r--src/video_core/shader/node.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/shader/node.h b/src/video_core/shader/node.h
index 44d85d434..b2576bdd6 100644
--- a/src/video_core/shader/node.h
+++ b/src/video_core/shader/node.h
@@ -68,6 +68,7 @@ enum class OperationCode {
68 IBitfieldInsert, /// (MetaArithmetic, int base, int insert, int offset, int bits) -> int 68 IBitfieldInsert, /// (MetaArithmetic, int base, int insert, int offset, int bits) -> int
69 IBitfieldExtract, /// (MetaArithmetic, int value, int offset, int offset) -> int 69 IBitfieldExtract, /// (MetaArithmetic, int value, int offset, int offset) -> int
70 IBitCount, /// (MetaArithmetic, int) -> int 70 IBitCount, /// (MetaArithmetic, int) -> int
71 IBitMSB, /// (MetaArithmetic, int) -> int
71 72
72 UAdd, /// (MetaArithmetic, uint a, uint b) -> uint 73 UAdd, /// (MetaArithmetic, uint a, uint b) -> uint
73 UMul, /// (MetaArithmetic, uint a, uint b) -> uint 74 UMul, /// (MetaArithmetic, uint a, uint b) -> uint
@@ -86,6 +87,7 @@ enum class OperationCode {
86 UBitfieldInsert, /// (MetaArithmetic, uint base, uint insert, int offset, int bits) -> uint 87 UBitfieldInsert, /// (MetaArithmetic, uint base, uint insert, int offset, int bits) -> uint
87 UBitfieldExtract, /// (MetaArithmetic, uint value, int offset, int offset) -> uint 88 UBitfieldExtract, /// (MetaArithmetic, uint value, int offset, int offset) -> uint
88 UBitCount, /// (MetaArithmetic, uint) -> uint 89 UBitCount, /// (MetaArithmetic, uint) -> uint
90 UBitMSB, /// (MetaArithmetic, uint) -> uint
89 91
90 HAdd, /// (MetaArithmetic, f16vec2 a, f16vec2 b) -> f16vec2 92 HAdd, /// (MetaArithmetic, f16vec2 a, f16vec2 b) -> f16vec2
91 HMul, /// (MetaArithmetic, f16vec2 a, f16vec2 b) -> f16vec2 93 HMul, /// (MetaArithmetic, f16vec2 a, f16vec2 b) -> f16vec2
@@ -149,6 +151,7 @@ enum class OperationCode {
149 TextureQueryDimensions, /// (MetaTexture, float a) -> float4 151 TextureQueryDimensions, /// (MetaTexture, float a) -> float4
150 TextureQueryLod, /// (MetaTexture, float[N] coords) -> float4 152 TextureQueryLod, /// (MetaTexture, float[N] coords) -> float4
151 TexelFetch, /// (MetaTexture, int[N], int) -> float4 153 TexelFetch, /// (MetaTexture, int[N], int) -> float4
154 TextureGradient, /// (MetaTexture, float[N] coords, float[N*2] derivates) -> float4
152 155
153 ImageLoad, /// (MetaImage, int[N] coords) -> void 156 ImageLoad, /// (MetaImage, int[N] coords) -> void
154 ImageStore, /// (MetaImage, int[N] coords) -> void 157 ImageStore, /// (MetaImage, int[N] coords) -> void
@@ -367,6 +370,7 @@ struct MetaTexture {
367 Node array; 370 Node array;
368 Node depth_compare; 371 Node depth_compare;
369 std::vector<Node> aoffi; 372 std::vector<Node> aoffi;
373 std::vector<Node> derivates;
370 Node bias; 374 Node bias;
371 Node lod; 375 Node lod;
372 Node component{}; 376 Node component{};