17 #ifndef SPIRV_HLSL_HPP 18 #define SPIRV_HLSL_HPP bool require_input
Definition: spirv_hlsl.hpp:211
Definition: spirv_hlsl.hpp:194
Definition: spirv_hlsl.hpp:193
Definition: spirv_hlsl.hpp:36
void emit_legacy_uniform(const SPIRVariable &var)
Definition: spirv_hlsl.cpp:2960
void emit_buffer_block(const SPIRVariable &type) override
Definition: spirv_hlsl.cpp:1831
bool requires_inverse_3x3
Definition: spirv_hlsl.hpp:181
uint32_t shader_model
Definition: spirv_hlsl.hpp:50
Definition: spirv_common.hpp:283
bool requires_textureProj
Definition: spirv_hlsl.hpp:171
bool requires_bitfield_insert
Definition: spirv_hlsl.hpp:178
#define const
Definition: zconf.h:217
Definition: spirv_glsl.hpp:56
std::string type_to_glsl(const SPIRType &type, uint32_t id=0) override
Definition: spirv_hlsl.cpp:358
set set set set set set set macro pixldst1 op
Definition: pixman-arm-neon-asm.h:54
uint32_t end
Definition: spirv_hlsl.hpp:39
SPIRV_CROSS_DEPRECATED("CompilerHLSL::get_options() is obsolete, use set_hlsl_options() instead.") void set_options(Options &opts)
Definition: spirv_hlsl.hpp:80
void emit_sampled_image_op(uint32_t result_type, uint32_t result_id, uint32_t image_id, uint32_t samp_id) override
Definition: spirv_hlsl.cpp:1969
void emit_push_constant_block(const SPIRVariable &var) override
Definition: spirv_hlsl.cpp:1898
Definition: spirv_hlsl.hpp:204
bool point_size_compat
Definition: spirv_hlsl.hpp:53
Definition: spirv_hlsl.hpp:206
StorageClass
Definition: spirv.hpp:137
void emit_modern_uniform(const SPIRVariable &var)
Definition: spirv_hlsl.cpp:2918
Definition: spirv_hlsl.hpp:48
Definition: spirv_common.hpp:369
Definition: spirv_hlsl.hpp:198
Definition: spirv_hlsl.hpp:27
GLsizeiptr size
Definition: glext.h:6559
Definition: spirv_hlsl.hpp:189
CompilerHLSL(std::vector< uint32_t > spirv_)
Definition: spirv_hlsl.hpp:59
Definition: spirv_hlsl.hpp:195
void emit_uniform(const SPIRVariable &var) override
Definition: spirv_hlsl.cpp:2975
std::string to_sampler_expression(uint32_t id)
Definition: spirv_hlsl.cpp:1954
void emit_builtin_inputs_in_struct()
Definition: spirv_hlsl.cpp:565
void require_texture_query_variant(const SPIRType &type)
Definition: spirv_hlsl.cpp:4440
GLsizei const GLchar *const * string
Definition: glext.h:6699
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
void emit_instruction(const Instruction &instruction) override
Definition: spirv_hlsl.cpp:3832
bool requires_inverse_2x2
Definition: spirv_hlsl.hpp:180
void emit_struct_member(const SPIRType &type, uint32_t member_type_id, uint32_t index, const std::string &qualifier, uint32_t base_offset=0) override
Definition: spirv_hlsl.cpp:1796
GLuint GLuint GLsizei count
Definition: glext.h:6292
TextureQueryVariantType
Definition: spirv_hlsl.hpp:201
uint32_t location
Definition: spirv_hlsl.hpp:29
void set_root_constant_layouts(std::vector< RootConstants > layout)
Definition: spirv_hlsl.hpp:95
void emit_interface_block_globally(const SPIRVariable &type)
Definition: spirv_hlsl.cpp:469
void emit_subgroup_op(const Instruction &i) override
Definition: spirv_hlsl.cpp:3658
uint32_t remap_num_workgroups_builtin()
Definition: spirv_hlsl.cpp:4504
std::string layout_for_member(const SPIRType &type, uint32_t index) override
Definition: spirv_hlsl.cpp:1779
bool requires_unorm8_packing
Definition: spirv_hlsl.hpp:174
bool requires_inverse_4x4
Definition: spirv_hlsl.hpp:182
GLenum type
Definition: glext.h:6233
TextureQueryVariantDim
Definition: spirv_hlsl.hpp:186
bool requires_fp16_packing
Definition: spirv_hlsl.hpp:172
void emit_store(const Instruction &instruction)
Definition: spirv_hlsl.cpp:3485
Definition: barrier.hpp:23
void emit_header() override
Definition: spirv_hlsl.cpp:458
std::string to_resource_register(char space, uint32_t binding, uint32_t set)
Definition: spirv_hlsl.cpp:2910
Op
Definition: spirv.hpp:714
void emit_io_block(const SPIRVariable &var)
Definition: spirv_hlsl.cpp:742
Options hlsl_options
Definition: spirv_hlsl.hpp:169
std::vector< HLSLVertexAttributeRemap > remap_vertex_attributes
Definition: spirv_hlsl.hpp:212
GLenum func
Definition: glext.h:6668
void emit_specialization_constants()
Definition: spirv_hlsl.cpp:1015
Definition: spirv_hlsl.hpp:197
bool requires_unorm16_packing
Definition: spirv_hlsl.hpp:176
void replace_illegal_names() override
Definition: spirv_hlsl.cpp:1057
Definition: spirv_hlsl.hpp:190
void set_hlsl_options(const Options &opts)
Definition: spirv_hlsl.hpp:86
void emit_hlsl_entry_point()
Definition: spirv_hlsl.cpp:2080
std::string semantic
Definition: spirv_hlsl.hpp:30
std::string builtin_to_glsl(spv::BuiltIn builtin, spv::StorageClass storage) override
Definition: spirv_hlsl.cpp:853
const Options & get_hlsl_options() const
Definition: spirv_hlsl.hpp:75
void emit_resources()
Definition: spirv_hlsl.cpp:1081
dictionary args
Definition: test_shaders.py:20
std::string image_type_hlsl(const SPIRType &type, uint32_t id)
Definition: spirv_hlsl.cpp:347
Definition: spirv_hlsl.hpp:192
T & set(uint32_t id, P &&... args)
Definition: spirv_cross.hpp:530
std::string image_type_hlsl_legacy(const SPIRType &type, uint32_t id)
Definition: spirv_hlsl.cpp:278
void emit_function_prototype(SPIRFunction &func, const Bitset &return_flags) override
Definition: spirv_hlsl.cpp:1993
SPIRV_CROSS_DEPRECATED("CompilerHLSL::get_options() is obsolete, use get_hlsl_options() instead.") const Options &get_options() const
Definition: spirv_hlsl.hpp:69
static int block
Definition: psp2.c:31
std::string image_type_hlsl_modern(const SPIRType &type, uint32_t id)
Definition: spirv_hlsl.cpp:227
std::string to_semantic(uint32_t vertex_location)
Definition: spirv_hlsl.cpp:733
bool requires_snorm16_packing
Definition: spirv_hlsl.hpp:177
void emit_atomic(const uint32_t *ops, uint32_t length, spv::Op op)
Definition: spirv_hlsl.cpp:3573
CompilerHLSL(const uint32_t *ir, size_t size)
Definition: spirv_hlsl.hpp:64
GLuint index
Definition: glext.h:6671
uint32_t start
Definition: spirv_hlsl.hpp:38
bool requires_explicit_fp16_packing
Definition: spirv_hlsl.hpp:173
argument_type
Definition: query.c:50
uint32_t space
Definition: spirv_hlsl.hpp:42
std::string compile() override
Definition: spirv_hlsl.cpp:4550
void emit_texture_op(const Instruction &i) override
Definition: spirv_hlsl.cpp:2408
void emit_builtin_variables()
Definition: spirv_hlsl.cpp:884
Definition: spirv_hlsl.hpp:203
bool requires_op_fmod
Definition: spirv_hlsl.hpp:170
std::vector< RootConstants > root_constants_layout
Definition: spirv_hlsl.hpp:223
Definition: spirv_common.hpp:803
void emit_composite_constants()
Definition: spirv_hlsl.cpp:987
Definition: spirv_hlsl.hpp:45
void emit_load(const Instruction &instruction)
Definition: spirv_hlsl.cpp:3343
void emit_access_chain(const Instruction &instruction)
Definition: spirv_hlsl.cpp:3495
uint32_t type_to_consumed_locations(const SPIRType &type) const
Definition: spirv_hlsl.cpp:687
const char * to_storage_qualifiers_glsl(const SPIRVariable &var) override
Definition: spirv_hlsl.cpp:482
bool requires_snorm8_packing
Definition: spirv_hlsl.hpp:175
bool requires_bitfield_extract
Definition: spirv_hlsl.hpp:179
std::string bitcast_glsl_op(const SPIRType &result_type, const SPIRType &argument_type) override
Definition: spirv_hlsl.cpp:2984
Definition: spirv_hlsl.hpp:191
std::string to_resource_binding_sampler(const SPIRVariable &var)
Definition: spirv_hlsl.cpp:2900
Definition: spirv_common.hpp:97
GLsizei const GLfloat * value
Definition: glext.h:6709
Definition: spirv_common.hpp:554
void emit_builtin_outputs_in_struct()
Definition: spirv_hlsl.cpp:495
Unknown compiler Device disconnected from port File already exists Saving to backup buffer Got connection No arguments supplied and no menu builtin
Definition: msg_hash_eo.h:34
BuiltIn
Definition: spirv.hpp:402
void emit_block_hints(const SPIRBlock &block) override
Definition: spirv_hlsl.cpp:4609
Definition: spirv_hlsl.hpp:188
Definition: spirv_common.hpp:769
void emit_interface_block_in_struct(const SPIRVariable &type, std::unordered_set< uint32_t > &active_locations)
void emit_fixup() override
Definition: spirv_hlsl.cpp:2388
Definition: spirv_common.hpp:686
bool point_coord_compat
Definition: spirv_hlsl.hpp:56
std::string read_access_chain(const SPIRAccessChain &chain)
Definition: spirv_hlsl.cpp:3216
GLbitfield flags
Definition: glext.h:7828
uint32_t num_workgroups_builtin
Definition: spirv_hlsl.hpp:219
bool require_output
Definition: spirv_hlsl.hpp:210
void write_access_chain(const SPIRAccessChain &chain, uint32_t value)
Definition: spirv_hlsl.cpp:3371
std::string to_resource_binding(const SPIRVariable &var)
Definition: spirv_hlsl.cpp:2840
unsigned __int64 uint64_t
Definition: stdint.h:136
GLenum GLuint GLenum GLsizei length
Definition: glext.h:6233
unsigned int uint32_t
Definition: stdint.h:126
Definition: spirv_hlsl.hpp:196
Definition: spirv_hlsl.hpp:205
void emit_glsl_op(uint32_t result_type, uint32_t result_id, uint32_t op, const uint32_t *args, uint32_t count) override
Definition: spirv_hlsl.cpp:3032
uint32_t binding
Definition: spirv_hlsl.hpp:41
std::string to_interpolation_qualifiers(const Bitset &flags) override
Definition: spirv_hlsl.cpp:712
std::string to_func_call_arg(uint32_t id) override
Definition: spirv_hlsl.cpp:1974
uint64_t required_textureSizeVariants
Definition: spirv_hlsl.hpp:183