diff options
| author | Parakeet-Wheat <227350947+Parakeet-Wheat@users.noreply.github.com> | 2026-11-22 09:54:18 +1100 |
|---|---|---|
| committer | Parakeet-Wheat <227350947+Parakeet-Wheat@users.noreply.github.com> | 2026-11-22 09:55:11 +1100 |
| commit | 257e3856cc62ce5fad18d8d7f48f585bf635f93e (patch) | |
| tree | 6f44167599f3ad61c0e4bab6a26451f09f384144 /runtime/src/pe_loader.cpp | |
| parent | 8bd0087d2d0e45fc18fa78fb40b70ecfc6648854 (diff) | |
Runtime: GetResourceAllocationInfo on the Vulkan device (D3D-23)
GetResourceAllocationInfo, GetResourceAllocationInfo1 and
GetResourceAllocationInfo2 were generated stubs. Buffers take their width
rounded up to 64 KiB. A texture's size is what its VkImage needs
(vkGetDeviceImageMemoryRequirements, or a throwaway image without it),
rounded up to its D3D12 alignment: 64 KiB, 4 MiB with MSAA, or the small
alignment the description asks for. A 4 KiB request that doesn't qualify
is invalid, as on the PC runtime; the MSAA 64 KiB one has no size limit
there. Texture creation and these queries share one VkImageCreateInfo.
d3d12_vulkan_device_test compares buffer sizes, alignments and invalid
descriptions with the host PC runtime, and checks the per-resource layout
of the Device4/Device8 variants.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions