Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Unity-Technologies/HLSLcc
/ functions
Functions
607 in github.com/Unity-Technologies/HLSLcc
⨍
Functions
607
◇
Types & classes
149
↓ 1,253 callers
Function
bcatcstr
int bcatcstr (bstring b, const char * s) * * Concatenate a char * string to a bstring. */
src/cbstring/bstrlib.c:389
↓ 532 callers
Method
AddIndentation
src/HLSLCrossCompilerContext.cpp:137
↓ 436 callers
Function
bformata
int bformata (bstring b, const char * fmt, ...) * * After the first parameter, it takes the same parameters as printf (), but * rather than outpu
src/cbstring/bstrlib.c:3073
↓ 120 callers
Method
GetNumSwizzleElements
Get the number of elements returned by operand, taking additional component mask into account
src/Operand.cpp:110
↓ 97 callers
Method
GetAccessMask
src/Operand.cpp:8
↓ 96 callers
Function
bdestroy
int bdestroy (bstring b) * * Free up the bstring. Note that if b is detectably invalid or not writable * then no action is performed and BSTR_ER
src/cbstring/bstrlib.c:1090
↓ 78 callers
Method
GetDataType
src/Operand.cpp:246
↓ 66 callers
Function
DecodeOperand
src/decode.cpp:188
↓ 59 callers
Function
GetConstructorForType
src/HLSLccToolkit.cpp:136
↓ 54 callers
Function
MarkOperandAs
src/DataTypeAnalysis.cpp:71
↓ 42 callers
Function
ResourceName
src/toGLSLOperand.cpp:1731
↓ 35 callers
Function
bconchar
int bconchar (bstring b, char c) / * * Concatenate the single character c to the bstring b. */
src/cbstring/bstrlib.c:372
↓ 34 callers
Function
TestAddOpAssignToDest
src/toMetalInstruction.cpp:4027
↓ 33 callers
Method
EnableExtension
src/HLSLCrossCompilerContext.cpp:157
↓ 33 callers
Function
balloc
int balloc (bstring b, int len) * * Increase the size of the memory backing the bstring b to at least len. */
src/cbstring/bstrlib.c:98
↓ 32 callers
Method
GetRegisterSpace
Returns 0 if the register used by the operand is per-vertex, or 1 if per-patch
src/Operand.cpp:224
↓ 31 callers
Function
bfromcstr
bstring bfromcstr (const char * str) * * Create a bstring which contains the contents of the '\0' terminated char * * buffer str. */
src/cbstring/bstrlib.c:195
↓ 29 callers
Method
GetResourceFromBindingPoint
src/ShaderInfo.cpp:25
↓ 27 callers
Function
bconcat
int bconcat (bstring b0, const_bstring b1) * * Concatenate the bstring b1 to the bstring b0. */
src/cbstring/bstrlib.c:336
↓ 24 callers
Function
GetConstructorForTypeMetal
src/HLSLccToolkit.cpp:99
↓ 24 callers
Method
GetPatchConstantSignatureFromRegister
src/ShaderInfo.cpp:79
↓ 24 callers
Function
HaveUnsignedTypes
src/internal_includes/languages.h:156
↓ 23 callers
Function
GetEarlyMain
src/HLSLccToolkit.cpp:539
↓ 23 callers
Function
bformat
bstring bformat (const char * fmt, ...) * * Takes the same parameters as printf (), but rather than outputting results * to stdio, it forms a bst
src/cbstring/bstrlib.c:3177
↓ 21 callers
Method
GetInputSignatureFromRegister
src/ShaderInfo.cpp:62
↓ 20 callers
Function
IsESLanguage
src/internal_includes/languages.h:82
↓ 20 callers
Method
IsVulkan
src/HLSLCrossCompilerContext.cpp:342
↓ 20 callers
Function
bfromcstralloc
bstring bfromcstralloc (int mlen, const char * str) * * Create a bstring which contains the contents of the '\0' terminated char * * buffer str.
src/cbstring/bstrlib.c:225
↓ 19 callers
Function
GetConstructorForTypeGLSL
src/HLSLccToolkit.cpp:58
↓ 19 callers
Method
GetOutputSignatureFromRegister
src/ShaderInfo.cpp:108
↓ 19 callers
Function
SVTTypeToFlag
src/HLSLccToolkit.cpp:21
↓ 18 callers
Method
RequireExtension
src/HLSLCrossCompilerContext.cpp:147
↓ 16 callers
Method
GetBasicBlockForInstruction
src/ControlFlowGraph.cpp:41
↓ 16 callers
Method
Last
src/internal_includes/ControlFlowGraph.h:106
↓ 15 callers
Method
OnDiagnostics
Called on errors or diagnostic messages
include/hlslcc.h:650
↓ 14 callers
Function
GetNumberBitsSet
src/HLSLccToolkit.cpp:13
↓ 13 callers
Function
DeclareBufferVariable
src/toGLSLDeclaration.cpp:1027
↓ 13 callers
Method
GetDeclaredInputName
src/HLSLCrossCompilerContext.cpp:169
↓ 12 callers
Function
bstrcpy
bstring bstrcpy (const_bstring b) * * Create a copy of the bstring b. */
src/cbstring/bstrlib.c:438
↓ 11 callers
Method
GetConstantBufferFromBindingPoint
src/ShaderInfo.cpp:19
↓ 11 callers
Function
HaveBitEncodingOps
src/internal_includes/languages.h:169
↓ 11 callers
Method
IsSwitch
src/HLSLCrossCompilerContext.cpp:347
↓ 11 callers
Function
TranslateResourceTexture
src/toGLSLDeclaration.cpp:1597
↓ 10 callers
Function
ForEachOperand
src/internal_includes/HLSLccToolkit.h:82
↓ 10 callers
Function
GenerateUnsupportedFormatWarning
src/toGLSLDeclaration.cpp:59
↓ 10 callers
Method
GetBindingSlot
include/hlslcc.h:168
↓ 10 callers
Method
GetVulkanResourceBinding
Retrieve the binding for a resource (texture, constant buffer, image) with a given name If not found, allocate a new one (in set 0) and return that Th
include/hlslcc.h:412
↓ 9 callers
Function
HavePrecisionQualifiers
Only enable for ES. Vulkan and Switch. Not present in 120, ignored in other desktop languages. Specifically enabled on Vulkan.
src/internal_includes/languages.h:56
↓ 9 callers
Method
OnConstant
Returns false if this constant var is not needed for this shader. See above.
include/hlslcc.h:660
↓ 9 callers
Function
ReadStringFromTokenStream
src/reflect.cpp:31
↓ 9 callers
Function
TranslateOperandSwizzle
src/toGLSLOperand.cpp:59
↓ 8 callers
Method
First
src/internal_includes/ControlFlowGraph.h:105
↓ 8 callers
Method
GetVaryingLocation
Retrieve the location for a varying with a given name. If the name doesn't already have an allocated location, allocate one and store it into the map.
include/hlslcc.h:342
↓ 8 callers
Function
TranslateOperandSwizzleWithMask
src/toGLSLOperand.cpp:64
↓ 8 callers
Function
bdelete
int bdelete (bstring b, int pos, int len) * * Removes characters from pos to pos+len-1 inclusive and shifts the tail of * the bstring starting fr
src/cbstring/bstrlib.c:1053
↓ 7 callers
Function
TypeFlagsToSVTType
src/HLSLccToolkit.cpp:45
↓ 7 callers
Function
UseReflection
src/toGLSLDeclaration.cpp:29
↓ 7 callers
Function
bcstrfree
int bcstrfree (char * s) * * Frees a C-string generated by bstr2cstr (). This is normally unnecessary * since it just wraps a call to bstr__free
src/cbstring/bstrlib.c:322
↓ 7 callers
Function
buildCharField
Convert a bstring to charField */
src/cbstring/bstrlib.c:1417
↓ 6 callers
Function
EmitLowp
src/internal_includes/languages.h:69
↓ 6 callers
Function
GetSamplerType
Not static because this is used in toGLSLInstruction.cpp when sampling Vulkan textures
src/toGLSLDeclaration.cpp:1388
↓ 6 callers
Function
HaveDynamicIndexing
src/internal_includes/languages.h:195
↓ 6 callers
Function
HaveUniformBindingsAndLocations
layout(binding = X) uniform {uniformA; uniformB;} layout(location = X) uniform uniform_name;
src/internal_includes/languages.h:113
↓ 6 callers
Method
IsMemberDeclared
include/hlslcc.h:585
↓ 6 callers
Function
PrintComponentWrapper2
src/toGLSL.cpp:1099
↓ 6 callers
Function
bcatblk
int bcatblk (bstring b, const void * s, int len) * * Concatenate a fixed length buffer to a bstring. */
src/cbstring/bstrlib.c:418
↓ 6 callers
Function
bsreada
int bsreada (bstring r, struct bStream * s, int n) * * Read a bstring of length n (or, if it is fewer, as many bytes as is * remaining) from the
src/cbstring/bstrlib.c:2327
↓ 6 callers
Function
bstr2cstr
char * bstr2cstr (const_bstring s, char z) * * Create a '\0' terminated char * buffer which is equal to the contents of * the bstring s, except t
src/cbstring/bstrlib.c:291
↓ 6 callers
Function
snapUpSize
Compute the snapped size for a given requested size. By snapping to powers of 2 like this, repeated reallocations are avoided. */
src/cbstring/bstrlib.c:66
↓ 5 callers
Method
Build
src/ControlFlowGraph.cpp:95
↓ 5 callers
Method
GetDeclaredOutputName
src/HLSLCrossCompilerContext.cpp:213
↓ 5 callers
Method
GetGLSLResourceBinding
include/hlslcc.h:523
↓ 5 callers
Function
GetInterpolationString
src/toGLSLDeclaration.cpp:192
↓ 5 callers
Method
GetNumInputElements
src/Operand.cpp:548
↓ 5 callers
Method
GetTempComponentCount
src/Shader.cpp:8
↓ 5 callers
Method
IsSwizzleReplicated
Single component repeated e..g .wwww
src/Operand.cpp:90
↓ 5 callers
Function
TextureSamplerName
src/toGLSLOperand.cpp:1795
↓ 5 callers
Function
bstrListDestroy
int bstrListDestroy (struct bstrList * sl) * * Destroy a bstrList that has been created by bsplit, bsplits or bstrListCreate. */
src/cbstring/bstrlib.c:2693
↓ 4 callers
Method
ChangeOperandTempRegister
src/Instruction.cpp:185
↓ 4 callers
Function
DecodeExtendedResourceReturnType
src/internal_includes/tokens.h:59
↓ 4 callers
Function
DecodeOperand4CompSwizzleSource
src/internal_includes/tokens.h:501
↓ 4 callers
Function
DecodeShaderPhase
src/decode.cpp:1312
↓ 4 callers
Function
ElemCountToAutoExpandFlag
src/HLSLccToolkit.cpp:348
↓ 4 callers
Method
GetMaxComponent
src/Operand.cpp:37
↓ 4 callers
Method
GetMemberCount
include/ShaderInfo.h:340
↓ 4 callers
Function
GetPostShaderCode
src/HLSLccToolkit.cpp:556
↓ 4 callers
Method
GetTextureDataType
src/ShaderInfo.cpp:10
↓ 4 callers
Function
HaveInOutLocationQualifier
src/internal_includes/languages.h:102
↓ 4 callers
Function
HaveLimitedInOutLocationQualifier
Only on vertex inputs and pixel outputs.
src/internal_includes/languages.h:93
↓ 4 callers
Function
IsMobileTarget
src/internal_includes/languages.h:46
↓ 4 callers
Function
MarkAllOperandsAs
src/DataTypeAnalysis.cpp:84
↓ 4 callers
Method
OnInputBinding
include/hlslcc.h:652
↓ 4 callers
Function
OperandPrecisionToShaderVariableType
src/DataTypeAnalysis.cpp:45
↓ 4 callers
Function
ParseInlineSamplerWrapMode
src/toMetalDeclaration.cpp:1128
↓ 4 callers
Function
PrintFloat
Helper function to print floats with full precision
src/HLSLccToolkit.cpp:522
↓ 4 callers
Function
PrintTrunc
src/toGLSL.cpp:1106
↓ 4 callers
Method
ReserveBindingSlot
Func for reserving binding slots with the original reg number. Used for fragment shader UAVs (SetRandomWriteTarget etc).
include/hlslcc.h:185
↓ 4 callers
Method
SaveTotalShaderStageAllocationsCount
include/hlslcc.h:206
↓ 4 callers
Function
base64DecodeSymbol
src/cbstring/bstraux.c:407
↓ 4 callers
Function
bsetstr
int bsetstr (bstring b0, int pos, bstring b1, unsigned char fill) * * Overwrite the string b0 starting at position pos with the string b1. If * t
src/cbstring/bstrlib.c:1533
next →
1–100 of 607, ranked by callers