laplaceliu/tycho/rhi does not have a README file
pub suberror RhiError {
BackendFailed(String)
}pub struct AccelStruct {
// private fields
}pub struct BindlessHeap {
// private fields
}fn BindlessHeap::register_texture(self : BindlessHeap, arg1 : Texture, arg2 : Sampler) -> Int raise RhiErrorpub struct Buffer {
// private fields
}pub struct CommandBuffer {
// private fields
}fn CommandBuffer::begin_render_pass(self : CommandBuffer, arg1 : Array[RenderTargetDesc], arg2 : DepthTargetDesc) -> Unit raise RhiErrorfn CommandBuffer::begin_swapchain_pass(self : CommandBuffer, arg1 : Swapchain, arg2 : LoadOp, arg3 : ClearColor) -> Unitfn CommandBuffer::bind_accel_struct(self : CommandBuffer, arg1 : Pipeline, arg2 : Int, arg3 : AccelStruct) -> Unitfn CommandBuffer::bind_bindless_heap(self : CommandBuffer, arg1 : Pipeline, arg2 : BindlessHeap, arg3 : Int) -> Unitfn CommandBuffer::bind_index(self : CommandBuffer, arg1 : Buffer, arg2 : IndexType, arg3 : Int) -> Unitfn CommandBuffer::bind_storage(self : CommandBuffer, arg1 : Pipeline, arg2 : Int, arg3 : Buffer, arg4 : Int, arg5 : Int) -> Unitfn CommandBuffer::bind_storage_image(self : CommandBuffer, arg1 : Pipeline, arg2 : Int, arg3 : Texture) -> Unitfn CommandBuffer::bind_texture(self : CommandBuffer, arg1 : Pipeline, arg2 : Int, arg3 : Texture, arg4 : Sampler) -> Unitfn CommandBuffer::bind_uniform(self : CommandBuffer, arg1 : Pipeline, arg2 : Int, arg3 : Buffer, arg4 : Int, arg5 : Int) -> Unitfn CommandBuffer::blit_texture(self : CommandBuffer, arg1 : Texture, arg2 : Texture, arg3 : Filter) -> Unitfn CommandBuffer::compute_pass(self : CommandBuffer, encode : (ComputePass) -> Unit raise RhiError) -> Unit raise RhiErrorfn CommandBuffer::copy_buffer(self : CommandBuffer, arg1 : Buffer, arg2 : Buffer, arg3 : Int) -> Unitfn CommandBuffer::draw_indexed_full(self : CommandBuffer, arg1 : Int, arg2 : Int, arg3 : Int, arg4 : Int, arg5 : Int) -> Unitfn CommandBuffer::draw_indexed_indirect(self : CommandBuffer, arg1 : Buffer, arg2 : Int, arg3 : Int, arg4 : Int) -> Unitfn CommandBuffer::draw_indexed_indirect_count(self : CommandBuffer, arg1 : Buffer, arg2 : Buffer, arg3 : Int, arg4 : Int, arg5 : Int, arg6 : Int) -> Unitfn CommandBuffer::draw_indirect(self : CommandBuffer, arg1 : Buffer, arg2 : Int, arg3 : Int, arg4 : Int) -> Unitfn CommandBuffer::draw_indirect_count(self : CommandBuffer, arg1 : Buffer, arg2 : Buffer, arg3 : Int, arg4 : Int, arg5 : Int, arg6 : Int) -> Unitfn CommandBuffer::draw_instanced(self : CommandBuffer, arg1 : Int, arg2 : Int, arg3 : Int, arg4 : Int) -> Unitfn CommandBuffer::draw_mesh_tasks_indirect(self : CommandBuffer, arg1 : Buffer, arg2 : Int, arg3 : Int, arg4 : Int) -> Unitfn CommandBuffer::push_constants_bytes(self : CommandBuffer, arg1 : Pipeline, arg2 : Bytes, arg3 : Int) -> Unitfn CommandBuffer::push_constants_floats(self : CommandBuffer, arg1 : Pipeline, arg2 : FixedArray[Float], arg3 : Int) -> Unitfn CommandBuffer::push_constants_mat4(self : CommandBuffer, arg1 : Pipeline, arg2 : Mat4, arg3 : Int) -> Unitfn CommandBuffer::render_pass(self : CommandBuffer, colors : Array[RenderTargetDesc], depth? : DepthTargetDesc, draw : (RenderPass) -> Unit raise RhiError) -> Unit raise RhiErrorfn CommandBuffer::set_scissor(self : CommandBuffer, arg1 : Int, arg2 : Int, arg3 : Int, arg4 : Int) -> Unitfn CommandBuffer::set_viewport(self : CommandBuffer, arg1 : Float, arg2 : Float, arg3 : Float, arg4 : Float) -> Unitfn CommandBuffer::swapchain_pass(self : CommandBuffer, swapchain : Swapchain, load_op : LoadOp, clear_color : ClearColor, draw : (RenderPass) -> Unit raise RhiError) -> Unit raise RhiErrorfn CommandBuffer::write_timestamp(self : CommandBuffer, arg1 : TimestampPool, arg2 : Int, arg3 : Bool) -> Unitpub struct ComputePass {
// private fields
}fn ComputePass::bind_bindless_heap(self : ComputePass, arg1 : Pipeline, arg2 : BindlessHeap, arg3 : Int) -> Unitfn ComputePass::bind_storage(self : ComputePass, arg1 : Pipeline, arg2 : Int, arg3 : Buffer, arg4 : Int, arg5 : Int) -> Unitfn ComputePass::bind_storage_image(self : ComputePass, arg1 : Pipeline, arg2 : Int, arg3 : Texture) -> Unitfn ComputePass::bind_uniform(self : ComputePass, arg1 : Pipeline, arg2 : Int, arg3 : Buffer, arg4 : Int, arg5 : Int) -> Unitfn ComputePass::push_constants_bytes(self : ComputePass, arg1 : Pipeline, arg2 : Bytes, arg3 : Int) -> Unitfn ComputePass::push_constants_floats(self : ComputePass, arg1 : Pipeline, arg2 : FixedArray[Float], arg3 : Int) -> Unitfn ComputePass::write_timestamp(self : ComputePass, arg1 : TimestampPool, arg2 : Int, arg3 : Bool) -> Unitpub struct Device {
// private fields
}fn Device::create_buffer_usage(self : Device, arg1 : Int, arg2 : BufferUsage, arg3 : MemoryLocation) -> Buffer raise RhiErrorfn Device::create_buffer_with(self : Device, arg1 : Int, arg2 : BufferKind, arg3 : MemoryLocation) -> Buffer raise RhiErrorfn Device::create_depth_texture(self : Device, arg1 : Int, arg2 : Int, arg3 : SampleCount) -> Texture raise RhiErrorfn Device::create_depth_texture_format(self : Device, arg1 : Int, arg2 : Int, arg3 : TextureFormat, arg4 : SampleCount) -> Texture raise RhiErrorfn Device::create_render_target(self : Device, arg1 : Int, arg2 : Int, arg3 : TextureFormat, arg4 : SampleCount) -> Texture raise RhiErrorfn Device::create_storage_texture(self : Device, arg1 : Int, arg2 : Int, arg3 : TextureFormat) -> Texture raise RhiErrorfn Device::create_texture_array(self : Device, arg1 : Int, arg2 : Int, arg3 : Int, arg4 : TextureFormat, arg5 : Bytes) -> Texture raise RhiErrorfn Device::create_texture_desc(self : Device, arg1 : TextureDesc, arg2 : Bytes) -> Texture raise RhiErrorfn Device::create_texture_format(self : Device, arg1 : Int, arg2 : Int, arg3 : TextureFormat, arg4 : Bytes) -> Texture raise RhiErrorfn Device::create_texture_mipmapped(self : Device, arg1 : Int, arg2 : Int, arg3 : TextureFormat, arg4 : Bytes) -> Texture raise RhiErrorfn Device::submit_commands(self : Device, arg1 : CommandBuffer, arg2 : Fence) -> Unit raise RhiErrorpub struct Fence {
// private fields
}pub struct Pipeline {
// private fields
}pub struct RenderPass {
// private fields
}fn RenderPass::bind_accel_struct(self : RenderPass, arg1 : Pipeline, arg2 : Int, arg3 : AccelStruct) -> Unitfn RenderPass::bind_bindless_heap(self : RenderPass, arg1 : Pipeline, arg2 : BindlessHeap, arg3 : Int) -> Unitfn RenderPass::bind_storage(self : RenderPass, arg1 : Pipeline, arg2 : Int, arg3 : Buffer, arg4 : Int, arg5 : Int) -> Unitfn RenderPass::bind_texture(self : RenderPass, arg1 : Pipeline, arg2 : Int, arg3 : Texture, arg4 : Sampler) -> Unitfn RenderPass::bind_uniform(self : RenderPass, arg1 : Pipeline, arg2 : Int, arg3 : Buffer, arg4 : Int, arg5 : Int) -> Unitfn RenderPass::draw_indexed_full(self : RenderPass, arg1 : Int, arg2 : Int, arg3 : Int, arg4 : Int, arg5 : Int) -> Unitfn RenderPass::draw_indexed_indirect(self : RenderPass, arg1 : Buffer, arg2 : Int, arg3 : Int, arg4 : Int) -> Unitfn RenderPass::draw_indexed_indirect_count(self : RenderPass, arg1 : Buffer, arg2 : Buffer, arg3 : Int, arg4 : Int, arg5 : Int, arg6 : Int) -> Unitfn RenderPass::draw_indirect(self : RenderPass, arg1 : Buffer, arg2 : Int, arg3 : Int, arg4 : Int) -> Unitfn RenderPass::draw_indirect_count(self : RenderPass, arg1 : Buffer, arg2 : Buffer, arg3 : Int, arg4 : Int, arg5 : Int, arg6 : Int) -> Unitfn RenderPass::draw_instanced(self : RenderPass, arg1 : Int, arg2 : Int, arg3 : Int, arg4 : Int) -> Unitfn RenderPass::push_constants_bytes(self : RenderPass, arg1 : Pipeline, arg2 : Bytes, arg3 : Int) -> Unitfn RenderPass::push_constants_floats(self : RenderPass, arg1 : Pipeline, arg2 : FixedArray[Float], arg3 : Int) -> Unitfn RenderPass::set_scissor(self : RenderPass, arg1 : Int, arg2 : Int, arg3 : Int, arg4 : Int) -> Unitfn RenderPass::set_viewport(self : RenderPass, arg1 : Float, arg2 : Float, arg3 : Float, arg4 : Float) -> Unitpub struct Sampler {
// private fields
}pub struct Swapchain {
// private fields
}fn Swapchain::create_mesh_pipeline(self : Swapchain, arg1 : MeshPipelineDesc) -> Pipeline raise RhiErrorfn Swapchain::create_pipeline_desc(self : Swapchain, arg1 : PipelineDesc) -> Pipeline raise RhiErrorpub struct Texture {
// private fields
}pub struct TimestampPool {
// private fields
}fn last_backend_error() -> StringInstall
Download zipTycho RHI — unified pure-MoonBit render hardware interface: Vulkan 1.3, Direct3D 12 and WebGPU (native + browser) drivers behind one virtual ABI; Metal seam planned