Files

2.3 KiB

Back to Twitter thread index


title: "@axelgneiting @kechogarcia Then there are rough edges to TEXEL_BUFFER" author: "NOTimothyLottes" handle: "@NOTimothyLottes" post_url: "https://x.com/NOTimothyLottes/status/1868492851170205803" post_id: "1868492851170205803" timestamp: "2024-12-16 03:06:25" post_count: 7 reply_count: 1 repost_count: 0 like_count: 1 view_count: 539

@NOTimothyLottes — @axelgneiting @kechogarcia Then there are rough edges to TEXEL_BUFFER

Post 1 (2024-12-15 23:52:44)

"Buffer zoo" is more about the silly season of things needed on the Vulkan shader side to do what you actually want which is just get instruction intrinsics. Just the layout and SSBO aliasing (below) hints at brutal stupid API/shader design

Media 1

Post 2 (2024-12-16 00:18:46) — reply to Post 1

@NOTimothyLottes Dxc hlsl sm 6.5 lets you index into ResourceDescriptorHeap directly and cast to whatever resource type. That and mutable vulkan descriptors, you wouldn't need to go the buffer Zoo route.... But then dxc spirv ...

Post 3 (2024-12-16 01:20:44) — reply to Post 2

@kechogarcia Read<32,64,128>(uint64_t base, uint32_t offset, uint32_t immediate, uint32_t cacheControl, uint32_t format);

And be done with this stupid mess

Post 4 (2024-12-16 02:46:43) — reply to Post 3

@NOTimothyLottes @kechogarcia NVidia can't just do random format conversions without it being a texture descriptor I thought?

Post 5 (2024-12-16 03:03:19) — reply to Post 4

@axelgneiting @kechogarcia Can get the non-conversion {signed/unsigned short/int/long and half/float/double, of {1-4} components}. Which is good enough to start the interface. Then yes for NV you'd need to alias via a storage_texel_buffer to get {10:11:11,10:10:10:2,<u/s>norm*}

Post 6 (2024-12-16 03:06:25) — reply to Post 5

@axelgneiting @kechogarcia Then there are rough edges to TEXEL_BUFFER

9-bit shared 5-bit E -> read only NV, no AMD sRGB -> yes NV, no AMD

And a big one: NV limits to 128 M elements {512 MiB,1GiB,2GiB} buffer size limits for {32,64,128}-bits respectively

Post 7 (2024-12-16 03:48:28) — reply to Post 6

@NOTimothyLottes @kechogarcia I'm well aware. It's really curious they still stick to this design after so many years.