diff options
| author | 2021-04-15 22:46:11 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:27 -0400 | |
| commit | 183855e396cc6918d36fbf3e38ea426e934b4e3e (patch) | |
| tree | a665794753520c09a1d34d8a086352894ec1cb72 /src/shader_recompiler/frontend/ir/ir_emitter.h | |
| parent | shader: Mark atomic instructions as writes (diff) | |
| download | yuzu-183855e396cc6918d36fbf3e38ea426e934b4e3e.tar.gz yuzu-183855e396cc6918d36fbf3e38ea426e934b4e3e.tar.xz yuzu-183855e396cc6918d36fbf3e38ea426e934b4e3e.zip | |
shader: Implement tessellation shaders, polygon mode and invocation id
Diffstat (limited to 'src/shader_recompiler/frontend/ir/ir_emitter.h')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.h b/src/shader_recompiler/frontend/ir/ir_emitter.h index e70359eb1..7f8f1ad42 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.h +++ b/src/shader_recompiler/frontend/ir/ir_emitter.h | |||
| @@ -84,6 +84,9 @@ public: | |||
| 84 | [[nodiscard]] F32 GetAttributeIndexed(const U32& phys_address, const U32& vertex); | 84 | [[nodiscard]] F32 GetAttributeIndexed(const U32& phys_address, const U32& vertex); |
| 85 | void SetAttributeIndexed(const U32& phys_address, const F32& value, const U32& vertex); | 85 | void SetAttributeIndexed(const U32& phys_address, const F32& value, const U32& vertex); |
| 86 | 86 | ||
| 87 | [[nodiscard]] F32 GetPatch(Patch patch); | ||
| 88 | void SetPatch(Patch patch, const F32& value); | ||
| 89 | |||
| 87 | void SetFragColor(u32 index, u32 component, const F32& value); | 90 | void SetFragColor(u32 index, u32 component, const F32& value); |
| 88 | void SetFragDepth(const F32& value); | 91 | void SetFragDepth(const F32& value); |
| 89 | 92 | ||
| @@ -95,6 +98,7 @@ public: | |||
| 95 | [[nodiscard]] U32 LocalInvocationIdY(); | 98 | [[nodiscard]] U32 LocalInvocationIdY(); |
| 96 | [[nodiscard]] U32 LocalInvocationIdZ(); | 99 | [[nodiscard]] U32 LocalInvocationIdZ(); |
| 97 | 100 | ||
| 101 | [[nodiscard]] U32 InvocationId(); | ||
| 98 | [[nodiscard]] U1 IsHelperInvocation(); | 102 | [[nodiscard]] U1 IsHelperInvocation(); |
| 99 | 103 | ||
| 100 | [[nodiscard]] U32 LaneId(); | 104 | [[nodiscard]] U32 LaneId(); |