Diligent::HLSL2GLSLConverterImpl::ConversionAttribs struct

Conversion attributes.

Contents

Public variables

IShaderSourceInputStreamFactory* pSourceStreamFactory
Shader source input stream factory. Used to load shader source when HLSLSource is null as well as to load shader includes.
IHLSL2GLSLConversionStream** ppConversionStream
Optional pointer to a conversion stream.
const Char* HLSLSource
HLSL source code. Can be null, in which case the source code will be loaded from the input stream factory (that must not be null in this case) using InputFileName.
size_t NumSymbols
Number of symbols in HLSLSource string. Ignored if HLSLSource is null.
const Char* EntryPoint
Shader entry point.
SHADER_TYPE ShaderType
Shader type. See Diligent::SHADER_TYPE.
bool IncludeDefinitions
Whether to include GLSL definitions supporting HLSL->GLSL conversion.
const Char* InputFileName
Input file name. If HLSLSource is not null, this name will only be used for information purposes. If HLSLSource is null, the name will be used to load shader source from the input stream factory.
const Char* SamplerSuffix
Combined texture sampler suffix.
bool UseInOutLocationQualifiers
Whether to use in-out location qualifiers. This requires separate shader objects extension: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_separate_shader_objects.txt.