simvx.graphics.gpu.descriptors¶
Descriptor pool, layout, and set management.
Module Contents¶
Functions¶
Create a descriptor pool for SSBO descriptors (+ optional image samplers). |
|
Create a descriptor set layout with N SSBO bindings + optional sampler bindings. |
|
Allocate a single descriptor set from the pool. |
|
Create a descriptor pool for combined image samplers. |
|
Create set layout for texture array (fixed-size combined image samplers). |
|
Write a single texture to the texture array at the given index. |
|
Write a combined image sampler to a descriptor set at the given binding. |
|
Write a single SSBO buffer binding to a descriptor set. |
Data¶
API¶
- simvx.graphics.gpu.descriptors.__all__¶
[‘create_descriptor_pool’, ‘create_ssbo_layout’, ‘allocate_descriptor_set’, ‘write_ssbo_descriptor’,…
- simvx.graphics.gpu.descriptors.log¶
‘getLogger(…)’
- simvx.graphics.gpu.descriptors.create_descriptor_pool(device: Any, max_sets: int = 4, extra_samplers: int = 0) Any¶
Create a descriptor pool for SSBO descriptors (+ optional image samplers).
- simvx.graphics.gpu.descriptors.create_ssbo_layout(device: Any, binding_count: int = 3, extra_samplers: int = 0) Any¶
Create a descriptor set layout with N SSBO bindings + optional sampler bindings.
- simvx.graphics.gpu.descriptors.allocate_descriptor_set(device: Any, pool: Any, layout: Any) Any¶
Allocate a single descriptor set from the pool.
- simvx.graphics.gpu.descriptors.create_texture_descriptor_pool(device: Any, max_textures: int = MAX_TEXTURES) Any¶
Create a descriptor pool for combined image samplers.
- simvx.graphics.gpu.descriptors.create_texture_descriptor_layout(device: Any, max_textures: int = MAX_TEXTURES) Any¶
Create set layout for texture array (fixed-size combined image samplers).
- simvx.graphics.gpu.descriptors.write_texture_descriptor(device: Any, descriptor_set: Any, texture_index: int, image_view: Any, sampler: Any) None¶
Write a single texture to the texture array at the given index.
- simvx.graphics.gpu.descriptors.write_image_descriptor(device: Any, descriptor_set: Any, binding: int, image_view: Any, sampler: Any) None¶
Write a combined image sampler to a descriptor set at the given binding.
- simvx.graphics.gpu.descriptors.write_ssbo_descriptor(device: Any, descriptor_set: Any, binding: int, buffer: Any, size: int) None¶
Write a single SSBO buffer binding to a descriptor set.