package acorn:shader_module

⌘K
Ctrl+K
or
/

    Index

    Constants (0)

    This section is empty.

    Variables (0)

    This section is empty.

    Procedure Groups (0)

    This section is empty.

    Types

    BindingItem ¶

    BindingItem :: struct {
    	binding_number:   u32,
    	set_number:       u32,
    	slang_type:       SLANGBindingType,
    	n_items_in_array: u32,
    	variable_sized:   bool,
    }

    SLANGBindingType ¶

    SLANGBindingType :: enum untyped integer {
    	ConstantBuffer, 
    	RWStructuredBuffer, 
    	StructuredBuffer, 
    	RWTexture2D, 
    	Texture2D, 
    	RWTexture2DSampled, 
    	Texture2DSampled, 
    	SamplerState, 
    	RayAccelerationStructure, 
    }
    Related Procedures With Parameters

    ShaderModuleContext ¶

    ShaderModuleContext :: struct {
    	vk_shader_module: vulkan.ShaderModule,
    	binding_items:    []BindingItem,
    	type:             ShaderType,
    }
     

    represents everything required to interact with a shader

    Related Procedures With Parameters
    Related Procedures With Returns

    ShaderType ¶

    ShaderType :: enum untyped integer {
    	COMPUTE, 
    	VERTEX, 
    	FRAGMENT, 
    }
    Related Procedures With Parameters

    Constants

    This section is empty.

    Variables

    This section is empty.

    Procedures

    create_shader_module ¶

    create_shader_module :: proc(device_context: ^device.DeviceContext, shader_path_slang: untyped string, shader_path_spirv: untyped string, type: ShaderType, variable_length_array_max_size: u32 = 1) -> ShaderModuleContext {…}

    delete_shader_module ¶

    delete_shader_module :: proc(device_context: ^device.DeviceContext, shader_module: ShaderModuleContext) {…}

    line_to_array_count ¶

    line_to_array_count :: proc(line: untyped string) -> u32 {…}

    parse_slang_file_to_binding_items ¶

    parse_slang_file_to_binding_items :: proc(compute_shader_code_slang_string: untyped string, variable_length_array_max_size: u32) -> []BindingItem {…}

    slang_type_to_vk_descriptor_type ¶

    slang_type_to_vk_descriptor_type :: proc(slang_type: SLANGBindingType) -> vulkan.DescriptorType {…}

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-2025-04 (vendor "odin") Linux_amd64 @ 2025-05-13 09:16:02.995276069 +0000 UTC