RetroArch
Classes | Macros | Typedefs | Enumerations | Functions
external_interface.h File Reference
#include <stddef.h>
Include dependency graph for external_interface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  spirv_cross_interface
 
struct  spirv_cross_miplevel
 
struct  spirv_cross_sampler_info
 

Macros

#define SPIRV_CROSS_NUM_DESCRIPTOR_SETS   4
 
#define SPIRV_CROSS_NUM_DESCRIPTOR_BINDINGS   16
 
#define SPIRV_CROSS_NUM_STAGE_INPUTS   16
 
#define SPIRV_CROSS_NUM_STAGE_OUTPUTS   16
 
#define SPIRV_CROSS_NUM_UNIFORM_CONSTANTS   32
 

Typedefs

typedef struct spirv_cross_shader spirv_cross_shader_t
 
typedef enum spirv_cross_builtin spirv_cross_builtin
 
typedef struct spirv_cross_sampler_2d spirv_cross_sampler_2d_t
 

Enumerations

enum  spirv_cross_builtin {
  SPIRV_CROSS_BUILTIN_POSITION = 0, SPIRV_CROSS_BUILTIN_FRAG_COORD = 1, SPIRV_CROSS_BUILTIN_WORK_GROUP_ID = 2, SPIRV_CROSS_BUILTIN_NUM_WORK_GROUPS = 3,
  SPIRV_CROSS_NUM_BUILTINS
}
 
enum  spirv_cross_format {
  SPIRV_CROSS_FORMAT_R8_UNORM = 0, SPIRV_CROSS_FORMAT_R8G8_UNORM = 1, SPIRV_CROSS_FORMAT_R8G8B8_UNORM = 2, SPIRV_CROSS_FORMAT_R8G8B8A8_UNORM = 3,
  SPIRV_CROSS_NUM_FORMATS
}
 
enum  spirv_cross_wrap { SPIRV_CROSS_WRAP_CLAMP_TO_EDGE = 0, SPIRV_CROSS_WRAP_REPEAT = 1, SPIRV_CROSS_NUM_WRAP }
 
enum  spirv_cross_filter { SPIRV_CROSS_FILTER_NEAREST = 0, SPIRV_CROSS_FILTER_LINEAR = 1, SPIRV_CROSS_NUM_FILTER }
 
enum  spirv_cross_mipfilter { SPIRV_CROSS_MIPFILTER_BASE = 0, SPIRV_CROSS_MIPFILTER_NEAREST = 1, SPIRV_CROSS_MIPFILTER_LINEAR = 2, SPIRV_CROSS_NUM_MIPFILTER }
 

Functions

void spirv_cross_set_stage_input (spirv_cross_shader_t *thiz, unsigned location, void *data, size_t size)
 
void spirv_cross_set_stage_output (spirv_cross_shader_t *thiz, unsigned location, void *data, size_t size)
 
void spirv_cross_set_push_constant (spirv_cross_shader_t *thiz, void *data, size_t size)
 
void spirv_cross_set_uniform_constant (spirv_cross_shader_t *thiz, unsigned location, void *data, size_t size)
 
void spirv_cross_set_resource (spirv_cross_shader_t *thiz, unsigned set, unsigned binding, void **data, size_t size)
 
const struct spirv_cross_interfacespirv_cross_get_interface (void)
 
void spirv_cross_set_builtin (spirv_cross_shader_t *thiz, spirv_cross_builtin builtin, void *data, size_t size)
 
spirv_cross_sampler_2d_tspirv_cross_create_sampler_2d (const struct spirv_cross_sampler_info *info)
 
void spirv_cross_destroy_sampler_2d (spirv_cross_sampler_2d_t *samp)
 

Macro Definition Documentation

◆ SPIRV_CROSS_NUM_DESCRIPTOR_BINDINGS

#define SPIRV_CROSS_NUM_DESCRIPTOR_BINDINGS   16

◆ SPIRV_CROSS_NUM_DESCRIPTOR_SETS

#define SPIRV_CROSS_NUM_DESCRIPTOR_SETS   4

◆ SPIRV_CROSS_NUM_STAGE_INPUTS

#define SPIRV_CROSS_NUM_STAGE_INPUTS   16

◆ SPIRV_CROSS_NUM_STAGE_OUTPUTS

#define SPIRV_CROSS_NUM_STAGE_OUTPUTS   16

◆ SPIRV_CROSS_NUM_UNIFORM_CONSTANTS

#define SPIRV_CROSS_NUM_UNIFORM_CONSTANTS   32

Typedef Documentation

◆ spirv_cross_builtin

◆ spirv_cross_sampler_2d_t

typedef struct spirv_cross_sampler_2d spirv_cross_sampler_2d_t

◆ spirv_cross_shader_t

Enumeration Type Documentation

◆ spirv_cross_builtin

Enumerator
SPIRV_CROSS_BUILTIN_POSITION 
SPIRV_CROSS_BUILTIN_FRAG_COORD 
SPIRV_CROSS_BUILTIN_WORK_GROUP_ID 
SPIRV_CROSS_BUILTIN_NUM_WORK_GROUPS 
SPIRV_CROSS_NUM_BUILTINS 

◆ spirv_cross_filter

Enumerator
SPIRV_CROSS_FILTER_NEAREST 
SPIRV_CROSS_FILTER_LINEAR 
SPIRV_CROSS_NUM_FILTER 

◆ spirv_cross_format

Enumerator
SPIRV_CROSS_FORMAT_R8_UNORM 
SPIRV_CROSS_FORMAT_R8G8_UNORM 
SPIRV_CROSS_FORMAT_R8G8B8_UNORM 
SPIRV_CROSS_FORMAT_R8G8B8A8_UNORM 
SPIRV_CROSS_NUM_FORMATS 

◆ spirv_cross_mipfilter

Enumerator
SPIRV_CROSS_MIPFILTER_BASE 
SPIRV_CROSS_MIPFILTER_NEAREST 
SPIRV_CROSS_MIPFILTER_LINEAR 
SPIRV_CROSS_NUM_MIPFILTER 

◆ spirv_cross_wrap

Enumerator
SPIRV_CROSS_WRAP_CLAMP_TO_EDGE 
SPIRV_CROSS_WRAP_REPEAT 
SPIRV_CROSS_NUM_WRAP 

Function Documentation

◆ spirv_cross_create_sampler_2d()

spirv_cross_sampler_2d_t* spirv_cross_create_sampler_2d ( const struct spirv_cross_sampler_info info)

◆ spirv_cross_destroy_sampler_2d()

void spirv_cross_destroy_sampler_2d ( spirv_cross_sampler_2d_t samp)

◆ spirv_cross_get_interface()

const struct spirv_cross_interface* spirv_cross_get_interface ( void  )
Here is the caller graph for this function:

◆ spirv_cross_set_builtin()

void spirv_cross_set_builtin ( spirv_cross_shader_t thiz,
spirv_cross_builtin  builtin,
void data,
size_t  size 
)
Here is the caller graph for this function:

◆ spirv_cross_set_push_constant()

void spirv_cross_set_push_constant ( spirv_cross_shader_t thiz,
void data,
size_t  size 
)

◆ spirv_cross_set_resource()

void spirv_cross_set_resource ( spirv_cross_shader_t thiz,
unsigned  set,
unsigned  binding,
void **  data,
size_t  size 
)
Here is the caller graph for this function:

◆ spirv_cross_set_stage_input()

void spirv_cross_set_stage_input ( spirv_cross_shader_t thiz,
unsigned  location,
void data,
size_t  size 
)

◆ spirv_cross_set_stage_output()

void spirv_cross_set_stage_output ( spirv_cross_shader_t thiz,
unsigned  location,
void data,
size_t  size 
)

◆ spirv_cross_set_uniform_constant()

void spirv_cross_set_uniform_constant ( spirv_cross_shader_t thiz,
unsigned  location,
void data,
size_t  size 
)