diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 13:17:12 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 13:17:12 -0500 |
| commit | 3a40f5a539b372721231d6ea397efc4e6424c19c (patch) | |
| tree | 5c1187189fc60fcdd7e06f3a4162fd95f1d6085b /docs/embedded_shaders.md | |
| parent | 54289ad441b96db8eb203d8f55bf941fb5c4938d (diff) | |
| parent | 5b5b69aed3a90b285b852d8ae887f5831040a48c (diff) | |
Merge pull request #2702 from Sc4ros
Diffstat (limited to 'docs/embedded_shaders.md')
| -rw-r--r-- | docs/embedded_shaders.md | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/embedded_shaders.md b/docs/embedded_shaders.md index 563b35d9b..dc79d2b7e 100644 --- a/docs/embedded_shaders.md +++ b/docs/embedded_shaders.md | |||
| @@ -50,7 +50,19 @@ the **whole container** to the compute-PSO call: at `0x180021330` it loads `DAT_ | |||
| 50 | `+0x1f0` (slot 62) receives that pointer, its size and two zero words. `FUN_18001d400` adds two more PSOs, | 50 | `+0x1f0` (slot 62) receives that pointer, its size and two zero words. `FUN_18001d400` adds two more PSOs, |
| 51 | `XDXR PostBuildInfoQuery` (0x14a4 bytes) and `XDXR GetBVHCompactedSize`. `bvh_builder_test` measures **53** PSO | 51 | `XDXR PostBuildInfoQuery` (0x14a4 bytes) and `XDXR GetBVHCompactedSize`. `bvh_builder_test` measures **53** PSO |
| 52 | creations during construction over the **52** containers ([d3d12_vulkan.md](d3d12_vulkan.md) A.2), so one | 52 | creations during construction over the **52** containers ([d3d12_vulkan.md](d3d12_vulkan.md) A.2), so one |
| 53 | container is created twice; which one is **Open**. | 53 | container is created twice. It is **`GetBVHCompactedSize`** (5,284 bytes = 0x14a4): creations **#47 and #53** pass |
| 54 | byte-identical containers (RT-182, `LEONIDA_BVH_RECORD62=1`, which now prints each creation's module from its `ILDN` | ||
| 55 | part and says when a container repeats). 0x14a4 is also the size this section gives for `XDXR PostBuildInfoQuery`, | ||
| 56 | which fits `FUN_18001d400`'s two XDXR PSOs being this one container created twice, once under each name; the test | ||
| 57 | does not see the PSO names, so that last step is a hypothesis. The creation order, by module (it is not the table | ||
| 58 | order of section 3; `CopyAndCompactBVH` is #52, not the first): | ||
| 59 | |||
| 60 | | creations | modules, in the order of the `CreateComputePipelineState` calls | | ||
| 61 | |---|---| | ||
| 62 | | #1-#13 | `InitPartitionedHeaders`, `PT_WriteOfflinePartition`, `PT_WritePartitions`, `PT_WriteInstances`, `PT_LoadInstances`, `PT_BeginPass`, `ResetCounterValues`, `InitHeaders`, `CopyForBVHUpdate`, `ResetToIndexBuffer`, `CopyCounters`, `CalculateMortonCodes`, `CalculateMortonCodes64` | | ||
| 63 | | #14-#29 | `BitonicPreSortCS`, `BitonicOuterSortCS`, `BitonicInnerSortCS`, `BitonicPreSort64CS`, `BitonicOuterSort64CS`, `BitonicInnerSort64CS`, `RadixReset`, `RadixCount`, `PrefixSum64`, `PrefixSum128`, `PrefixSum256`, `PrefixSum512`, `PrefixSum1024`, `PrefixSum2048`, `PrefixSum4096`, `RadixAlloc` | | ||
| 64 | | #30-#46 | `RearrangeTriangles`, `RearrangeBVHs`, `LoadInstances`, `SplitInstances`, `LoadTriangles`, `LoadProceduralGeometry`, `ReloadTriangles`, `ReloadProcedurals`, `PT_ConstructBVH4`, `ConstructBVH4`, `RefitBVH4`, `BuildBVHSplits`, `BuildBVHSplits64`, `FindTreelets`, `ResetKDOP`, `BuildKDOP`, `BuildApexPointMap` | | ||
| 65 | | #47-#53 | `GetBVHCompactedSize`, `DecompressHeader`, `LeafRehydration`, `Box16Rehydration`, `Box32Rehydration`, `CopyAndCompactBVH`, `GetBVHCompactedSize` (again) | | ||
| 54 | 66 | ||
| 55 | ## 3. The 52 modules | 67 | ## 3. The 52 modules |
| 56 | 68 | ||