527 B
527 B
D3D12Shader::GetBytecode
const void* GetBytecode() const;
作用
返回原始编译字节码缓冲的起始地址。
当前实现行为
- 如果
m_bytecode有效,返回m_bytecode->GetBufferPointer() - 否则返回
nullptr
使用建议
如果你要构建 D3D12 PSO,优先使用 GetD3D12Bytecode。这个接口更适合调试、日志和外部序列化类场景。