sead
Loading...
Searching...
No Matches
aglResShaderSource.h
Go to the documentation of this file.
1#pragma once
2
3#include <common/aglResCommon.h>
4
5namespace agl {
6
8{
12 u32 mRawTextLen; // If file includes other files, this is the length of text after
13 // resolving all includes + macros auto defined by AGL.
14 // Otherwise, it's the same as the previous field.
15 // (Unused)
16 // char mName[];
17};
18static_assert(sizeof(ResShaderSourceData) == 0x10, "agl::ResShaderSourceData size mismatch");
19
21{
23
24public:
25 const char* getName() const
26 {
27 return (const char*)(ptr() + 1);
28 }
29
30 const char* getText() const
31 {
32 return getName() + ptr()->mNameLen;
33 }
34};
35
37
39static_assert(sizeof(ResShaderSourceArrayData) == 8, "agl::ResShaderSourceArrayData size mismatch");
40
41}
#define AGL_RES_COMMON(class_name)
Definition aglResCommon.h:76
Definition aglResCommon.h:117
Definition aglResCommon.h:12
const DataType * ptr() const
Definition aglResCommon.h:55
Definition aglResShaderSource.h:21
const char * getText() const
Definition aglResShaderSource.h:30
const char * getName() const
Definition aglResShaderSource.h:25
Definition aglDisplayList.cpp:5
ResArray< ResShaderSource > ResShaderSourceArray
Definition aglResShaderSource.h:36
ResShaderSourceArray::DataType ResShaderSourceArrayData
Definition aglResShaderSource.h:38
Definition aglResShaderSource.h:8
u32 mRawTextLen
Definition aglResShaderSource.h:12
u32 mTextLen
Definition aglResShaderSource.h:11
u32 mSize
Definition aglResShaderSource.h:9
u32 mNameLen
Definition aglResShaderSource.h:10