Main RHI entry point. Obtained from the host application; not constructed in Lua.
Lua full name: vireo.Vireo
|
| nil | wait_idle () |
| | Blocks the CPU until the GPU has finished all pending work on all queues. More...
|
| |
| SwapChain | create_swap_chain (format: ImageFormat, presentQueue: SubmitQueue, windowHandle: any, presentMode: PresentMode|nil, framesInFlight: integer|nil) |
| | Creates a swap chain for the given OS window handle with optional presentation mode and frame count. More...
|
| |
| SubmitQueue | create_submit_queue (commandType: CommandType, name: string|nil) |
| | Creates a GPU command submission queue for the given command type. More...
|
| |
| Fence | create_fence (createSignaled: boolean|nil, name: string|nil) |
| | Creates a CPU/GPU fence (unsignaled by default; pass createSignaled=true to start in the signaled state). More...
|
| |
| Semaphore | create_semaphore (type: SemaphoreType, name: string|nil) |
| | Creates a GPU synchronization semaphore of the given type. More...
|
| |
| CommandAllocator | create_command_allocator (type: CommandType) |
| | Creates a command allocator for the given queue type. More...
|
| |
| VertexInputLayout | create_vertex_layout (size: integer, attributes: VertexAttributeDesc[]) |
| | Creates a vertex input layout from a per-vertex stride (bytes) and a list of attribute descriptors. More...
|
| |
| ShaderModule | create_shader_module_from_file (path: string) |
| | Loads a compiled shader binary from a file path (append shader_file_extension for the correct format). More...
|
| |
| ShaderModule | create_shader_module_from_data (data: any, name: string) |
| | Creates a shader module from raw compiled byte data with an optional debug name. More...
|
| |
| PipelineResources | create_pipeline_resources (layouts: DescriptorLayout[]|nil, pushConstant: PushConstantsDesc|nil, name: string|nil) |
| | Creates a pipeline layout from an ordered list of descriptor layouts and an optional push-constant range. More...
|
| |
| ComputePipeline | create_compute_pipeline (resources: PipelineResources, shader: ShaderModule, name: string|nil) |
| | Compiles and returns a compute pipeline from a layout and a compute shader module. More...
|
| |
| GraphicPipeline | create_graphic_pipeline (config: GraphicPipelineConfiguration, name: string|nil) |
| | Compiles and returns a graphics pipeline from a full configuration descriptor. More...
|
| |
| Buffer | create_buffer (type: BufferType, size: integer, count: integer|nil, name: string|nil) |
| | Allocates a GPU buffer. size is the per-element byte size; count is the number of elements (default 1). More...
|
| |
| Image | create_image (format: ImageFormat, width: integer, height: integer, mipLevels: integer|nil, arraySize: integer|nil, name: string|nil) |
| | Allocates a shader-read-only GPU image. More...
|
| |
| Image | create_read_write_image (format: ImageFormat, width: integer, height: integer, mipLevels: integer|nil, arraySize: integer|nil, name: string|nil) |
| | Allocates a GPU read/write image (UAV / storage image). More...
|
| |
| RenderTarget | create_render_target (format: ImageFormat, width: integer, height: integer, type: RenderTargetType|nil, clearValue: ClearValue|nil, arraySize: integer|nil, msaa: MSAA|nil, name: string|nil) |
| | Creates a render target of the given format and dimensions. More...
|
| |
| RenderTarget | create_render_target_from_swap_chain (swapChain: SwapChain, clearValue: ClearValue|nil, msaa: MSAA|nil, name: string|nil) |
| | Creates a color render target whose format and dimensions match the given swap chain. More...
|
| |
| DescriptorLayout | create_descriptor_layout (name: string|nil) |
| | Creates an empty descriptor layout for uniform, storage, image, and sampler bindings. More...
|
| |
| DescriptorLayout | create_sampler_descriptor_layout (name: string|nil) |
| | Creates an empty descriptor layout intended for sampler-only bindings. More...
|
| |
| DescriptorLayout | create_dynamic_uniform_descriptor_layout (name: string|nil) |
| | Creates an empty descriptor layout for dynamic uniform buffer bindings. More...
|
| |
| DescriptorSet | create_descriptor_set (layout: DescriptorLayout, name: string|nil) |
| | Creates a descriptor set from a finalized DescriptorLayout. More...
|
| |
| Sampler | create_sampler (minFilter: Filter, magFilter: Filter, addressModeU: AddressMode, addressModeV: AddressMode, addressModeW: AddressMode, minLod: number|nil, maxLod: number|nil, anisotropyEnable: boolean|nil, mipMapMode: FilterMode|nil, compareOp: CompareOp|nil) |
| | Creates an immutable texture sampler with the given filtering, addressing, LOD, and comparison parameters. More...
|
| |
| boolean | is_backend_supported (backend: Backend)static |
| | Returns true if the given rendering backend is available and supported on this machine. More...
|
| |
|
| Backend | backend |
| | The active rendering backend (DIRECTX or VULKAN). (read-only)
|
| |
| string | shader_file_extension |
| | File extension for pre-compiled shaders on the active backend (e.g. ".spv" for Vulkan, ".cso" for DirectX). (read-only)
|
| |
| PhysicalDevice | physical_device |
| | The PhysicalDevice representing the selected GPU. (read-only)
|
| |
| Device | device |
| | The logical Device wrapping the GPU. (read-only)
|
| |
| Instance | instance |
| | The underlying API Instance (VkInstance / IDXGIFactory). (read-only)
|
| |