laplaceliu/tycho_shader/reflect does not have a README file

    ReflectedBinding

    pub(all) struct ReflectedBinding {
    set : Int
    binding : Int
    kind : ReflectedDescriptorKind
    count : Int
    name : String
    } derive(Eq,
    Debug
    )

    ReflectedDescriptorKind

    pub(all) enum ReflectedDescriptorKind {
    UniformBuffer
    StorageBuffer
    CombinedImageSampler
    StorageImage
    SampledImage
    Sampler
    AccelerationStructure
    } derive(Eq,
    Debug
    )

    ReflectedStage

    pub(all) enum ReflectedStage {
    Vertex
    Fragment
    Compute
    Unknown
    } derive(Eq,
    Debug
    )

    ReflectedVertexFormat

    pub(all) enum ReflectedVertexFormat {
    Float1
    Float2
    Float3
    Float4
    Int1
    Uint1
    Unknown
    } derive(Eq,
    Debug
    )

    ReflectedVertexInput

    pub(all) struct ReflectedVertexInput {
    location : Int
    format : ReflectedVertexFormat
    name : String
    } derive(Eq,
    Debug
    )

    SpirvReflection

    pub(all) struct SpirvReflection {
    stage : ReflectedStage
    entry_point : String
    vertex_inputs : Array[ReflectedVertexInput]
    bindings : Array[ReflectedBinding]
    push_constant_size : Int
    color_output_count : Int
    local_size : (Int, Int, Int)
    }

    reflect_spirv

    fn reflect_spirv(spv : FixedArray[UInt]) -> SpirvReflection

    Source Files