ComputeTargetSizes
function · ffxeffects · primitive
- Address
0x6cdb40· 357 bytes, up to0x6cdca4- Meaning
- Sizes the full, half and quarter targets from the window rectangle and stores the screen size
- Confidence
- verified, proof one
- Finding
- ffxeffects/targets#render-target-sizes
- Test
ffxeffects::ffx_compute_rt_dims_difftest
Finding: Render target sizes in ffxeffects: render targets and the quad
0x6cdb40 sizes the targets from the window rectangle. With w and h the __ftol of its extents,
it stores them and 1/w, 1/h (rounded to float) in the screen descriptor 0xce8b98. With m the
maximum texture size of the mode 0x6cdb10 gives (caps[0x60 + 4·mode]), it allocates the full
target at max(8, min(w, m)) × max(8, min(h, m)), then the half (/2, toward zero) and quarter (/4,
toward zero) of that size. 0x6cdb10 returns 2 when ffxRectangle is nonzero, caps+0x58 is nonzero
and caps+0x5c is 0, else 0.
The derivation is in the doc.
Callers 1
- BeginCurrentFfx ffxeffects
Callees 5
- __ftol crt
- GxDeviceCaps gx
- GxCapsDrawRect gx
- GetTargetMode ffxeffects
- AllocateTarget ffxeffects
Calls and jumps by a bare address, from tables/calls.tsv.