mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Added uint32_t ssaID to DXIL::GlobalVar
Changed GlobalVar::align from uint64_t -> uint32_t to make space for the new member
This commit is contained in:
@@ -1092,10 +1092,12 @@ struct GlobalVar : public ForwardReferencableValue<GlobalVar>
|
||||
static constexpr ValueKind Kind = ValueKind::GlobalVar;
|
||||
GlobalVar() : ForwardReferencableValue(Kind) {}
|
||||
rdcstr name;
|
||||
uint64_t align = 0;
|
||||
const Constant *initialiser = NULL;
|
||||
uint32_t align = 0;
|
||||
int32_t section = -1;
|
||||
GlobalFlags flags = GlobalFlags::NoFlags;
|
||||
const Constant *initialiser = NULL;
|
||||
// unique global ID used by the debugger and disassembly similar to Instruction member variable slot
|
||||
uint32_t ssaId = ~0U;
|
||||
};
|
||||
|
||||
struct DIBase
|
||||
|
||||
@@ -598,7 +598,7 @@ bytebuf ProgramEditor::EncodeProgram()
|
||||
|
||||
for(size_t i = 0; i < m_GlobalVars.size(); i++)
|
||||
{
|
||||
cfg.maxAlign = RDCMAX(m_GlobalVars[i]->align, cfg.maxAlign);
|
||||
cfg.maxAlign = RDCMAX((uint64_t)m_GlobalVars[i]->align, cfg.maxAlign);
|
||||
RDCASSERT(m_GlobalVars[i]->type->type == Type::Pointer);
|
||||
uint32_t typeIndex = uint32_t(getTypeID(m_GlobalVars[i]->type->inner));
|
||||
cfg.maxGlobalType = RDCMAX(typeIndex, cfg.maxGlobalType);
|
||||
|
||||
Reference in New Issue
Block a user