simvx.graphics.gpu.descriptors

Descriptor pool, layout, and set management.

Module Contents

Functions

create_descriptor_pool

Create a descriptor pool for SSBO descriptors (+ optional image samplers).

create_ssbo_layout

Create a descriptor set layout with N SSBO bindings + optional sampler bindings.

allocate_descriptor_set

Allocate a single descriptor set from the pool.

create_texture_descriptor_pool

Create a descriptor pool for combined image samplers.

create_texture_descriptor_layout

Create set layout for texture array (fixed-size combined image samplers).

write_texture_descriptor

Write a single texture to the texture array at the given index.

write_image_descriptor

Write a combined image sampler to a descriptor set at the given binding.

write_ssbo_descriptor

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.