Move SpecConstant to a common header for re-use

This commit is contained in:
baldurk
2020-02-12 14:01:46 +00:00
parent 18e10457df
commit 19cb3c7cb3
2 changed files with 11 additions and 10 deletions
@@ -219,4 +219,13 @@ public:
}; // namespace rdcspv
struct SpecConstant
{
SpecConstant() = default;
SpecConstant(uint32_t id, uint64_t val, size_t size) : specID(id), value(val), dataSize(size) {}
uint32_t specID = 0;
uint64_t value = 0;
size_t dataSize = 0;
};
DECLARE_STRINGISE_TYPE(rdcspv::Id);
+2 -10
View File
@@ -67,15 +67,6 @@ struct SPIRVPatchData
Topology outTopo = Topology::Unknown;
};
struct SpecConstant
{
SpecConstant() = default;
SpecConstant(uint32_t id, uint64_t val, size_t size) : specID(id), value(val), dataSize(size) {}
uint32_t specID = 0;
uint64_t value = 0;
size_t dataSize = 0;
};
namespace rdcspv
{
struct SourceFile
@@ -137,7 +128,8 @@ private:
rdcarray<MemberName> memberNames;
};
};
}; // namespace rdcspv
static const uint32_t SpecializationConstantBindSet = 1234567;
static const uint32_t PushConstantBindSet = 1234568;