MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetBytecode

Method GetBytecode

trinityal/dx11/Tr2ShaderALDx11.cpp:138–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138ALResult Tr2ShaderAL::GetBytecode( Tr2ShaderBytecodeAL& bytecode ) const
139{
140 if( m_type == INVALID_SHADER )
141 {
142 bytecode = Tr2ShaderBytecodeAL();
143 return E_FAIL;
144 }
145
146 bytecode.bytecode = m_bytecode.empty() ? nullptr : m_bytecode.get();
147 bytecode.size = m_bytecode.size();
148 return S_OK;
149}
150
151const Tr2ShaderSignatureAL& Tr2ShaderAL::GetSignature() const
152{

Callers 1

SetLayoutMethod · 0.45

Calls 4

Tr2ShaderBytecodeALClass · 0.85
emptyMethod · 0.80
getMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected