18 unsigned int numBytes, std::vector<Member>
const& members)
26 unsigned int index,
unsigned int numBytes,
27 std::vector<Member>
const& members)
44 output <<
"Variable[" << i <<
"]:" << std::endl;
45 member.first.Print(output);
46 output <<
"Type[" << i <<
"]:" << std::endl;
47 member.second.Print(output, 0);
63 unsigned int parentOffset,
std::string const& parentName,
64 std::vector<MemberLayout>& layout)
const 69 for (
unsigned int i = 0; i < numChildren; ++i)
73 parentName +
"." + child.
GetName(), layout);
79 item.
name = parentName;
80 item.
offset = parentOffset;
82 layout.push_back(item);
virtual void Print(std::ofstream &output) const
std::vector< Member > mMembers
virtual ~HLSLBaseBuffer()
HLSLShaderType & GetChild(unsigned int i)
GLsizei const GLchar *const * string
#define D3D_SHADER_INPUT_BIND_DESC
std::string const & GetName() const
unsigned int GetOffset() const
unsigned int GetNumElements() const
std::vector< Member > const & GetMembers() const
unsigned int GetNumChildren() const
HLSLBaseBuffer(D3D_SHADER_INPUT_BIND_DESC const &desc, unsigned int numBytes, std::vector< Member > const &members)
void GenerateLayout(std::vector< MemberLayout > &layout) const