JinxRyu/Ryujinx.Graphics.Shader/Translation
gdkchan f1d1670b0b
Implement HLE macro for DrawElementsIndirect (#3748)
* Implement HLE macro for DrawElementsIndirect

* Shader cache version bump

* Use GL_ARB_shader_draw_parameters extension on OpenGL

* Fix DrawIndexedIndirectCount on Vulkan when extension is not supported

* Implement DrawIndex

* Alignment

* Fix some validation errors

* Rename BaseIds to DrawParameters

* Fix incorrect index buffer and vertex buffer size in some cases

* Add HLE macros for DrawArraysInstanced and DrawElementsInstanced

* Perform a regular draw when indirect data is not modified

* Use non-indirect draw methods if indirect buffer was not GPU modified

* Only check if draw parameters match if the shader actually uses them

* Expose Macro HLE setting on GUI

* Reset FirstVertex and FirstInstance after draw

* Update shader cache version again since some people already tested this

* PR feedback

Co-authored-by: riperiperi <rhy3756547@hotmail.com>
2022-11-16 14:53:04 -03:00
..
Optimizations Fix bindless 1D textures having a buffer type on the shader (#3697) 2022-09-13 08:53:55 +02:00
AggregateType.cs Vulkan backend (#2518) 2022-07-31 18:26:06 -03:00
AttributeConsts.cs Implement HLE macro for DrawElementsIndirect (#3748) 2022-11-16 14:53:04 -03:00
AttributeInfo.cs Implement HLE macro for DrawElementsIndirect (#3748) 2022-11-16 14:53:04 -03:00
ControlFlowGraph.cs Rewrite shader decoding stage (#2698) 2021-10-12 22:35:31 +02:00
Dominance.cs Rewrite shader decoding stage (#2698) 2021-10-12 22:35:31 +02:00
EmitterContext.cs Improve shader BRX instruction code generation (#3759) 2022-10-15 23:20:16 +00:00
EmitterContextInsts.cs Implement remaining shader double-precision instructions (#2845) 2021-12-08 17:54:12 -03:00
FeatureFlags.cs Implement HLE macro for DrawElementsIndirect (#3748) 2022-11-16 14:53:04 -03:00
FunctionMatch.cs Add support for fragment shader interlock (#2768) 2021-10-28 19:53:12 -03:00
GlobalMemory.cs Fix shader 8-bit and 16-bit STS/STG (#2741) 2021-10-18 20:24:15 -03:00
RegisterUsage.cs Use multiple dest operands for shader call instructions (#1975) 2021-02-01 11:13:38 +11:00
Rewriter.cs Implement HLE macro for DrawElementsIndirect (#3748) 2022-11-16 14:53:04 -03:00
ShaderConfig.cs Use vector transform feedback outputs if possible (#3832) 2022-11-12 20:20:40 -03:00
ShaderHeader.cs Do not allow render targets not explicitly written by the fragment shader to be modified (#3063) 2022-02-16 23:15:39 +01:00
Ssa.cs Vulkan backend (#2518) 2022-07-31 18:26:06 -03:00
TargetApi.cs Allow shader language and target API to be specified on the shader translator (#2402) 2021-07-06 21:20:06 +02:00
TargetLanguage.cs shadertools: Prepare for new target Languages and APIs (#2465) 2021-07-18 12:49:39 +02:00
TranslationFlags.cs Stop using glTransformFeedbackVaryings and use explicit layout on the shader (#3012) 2022-01-21 12:35:21 -03:00
TranslationOptions.cs Allow shader language and target API to be specified on the shader translator (#2402) 2021-07-06 21:20:06 +02:00
Translator.cs Implement HLE macro for DrawElementsIndirect (#3748) 2022-11-16 14:53:04 -03:00
TranslatorContext.cs Fix incorrect tessellation inputs/outputs (#3728) 2022-10-01 02:35:52 -03:00