naga::front::spv

Function make_index_literal

source
fn make_index_literal(
    ctx: &mut BlockContext<'_>,
    index: u32,
    block: &mut Block,
    emitter: &mut Emitter,
    index_type: Handle<Type>,
    index_type_id: Word,
    span: Span,
) -> Result<Handle<Expression>, Error>