Ryujinx/Spv.Generator
riperiperi dd718fbe97 Pool Spv.Generator resources, cache delegates, spv opts
- Pools for Instructions and LiteralIntegers. Can be passed in when creating the generator module.
  - NewInstruction is called instead of new Instruction()
  - Ryujinx SpirvGenerator passes in some pools that are static. The idea is for these to be shared between threads eventually.
- Estimate code size when creating the output MemoryStream
- LiteralInteger pools using ThreadStatic pools that are initialized before and after creation... not sure of a better way since the way these are created is via implicit cast.

Also, cache delegates for Spv.Generator for functions that are passed around to GenerateBinary etc, since passing the function raw creates a delegate on each call.

TODO: update python spv cs generator to make the coregrammar with NewInstruction and the `params` overloads.
2022-06-17 22:42:43 +01:00
..
Autogenerated Pool Spv.Generator resources, cache delegates, spv opts 2022-06-17 22:42:43 +01:00
ConstantKey.cs Some optimizations to Spv.Generator 2022-06-17 22:42:43 +01:00
DeterministicHashCode.cs Some optimizations to Spv.Generator 2022-06-17 22:42:43 +01:00
DeterministicStringKey.cs Some optimizations to Spv.Generator 2022-06-17 22:42:43 +01:00
GeneratorPool.cs Pool Spv.Generator resources, cache delegates, spv opts 2022-06-17 22:42:43 +01:00
Instruction.cs Pool Spv.Generator resources, cache delegates, spv opts 2022-06-17 22:42:43 +01:00
InstructionOperands.cs Some optimizations to Spv.Generator 2022-06-17 22:42:43 +01:00
LICENSE Update Spv.Generator 2022-06-17 22:42:35 +01:00
LiteralInteger.cs Pool Spv.Generator resources, cache delegates, spv opts 2022-06-17 22:42:43 +01:00
LiteralString.cs Some optimizations to Spv.Generator 2022-06-17 22:42:43 +01:00
Module.cs Pool Spv.Generator resources, cache delegates, spv opts 2022-06-17 22:42:43 +01:00
Operand.cs Reduce allocations for Spir-v serialization 2022-06-17 22:42:43 +01:00
OperandType.cs Update Spv.Generator 2022-06-17 22:42:35 +01:00
spirv.cs SPIR-V: Fix ImageQuerySizeLod 2022-06-17 22:42:40 +01:00
Spv.Generator.csproj Update Spv.Generator 2022-06-17 22:42:35 +01:00
TypeDeclarationKey.cs Some optimizations to Spv.Generator 2022-06-17 22:42:43 +01:00