Compile fixes for C# GL pipeline state struct to match real struct

This commit is contained in:
baldurk
2015-01-18 10:54:48 +00:00
parent ec1a81cf8b
commit 0fb3c54514
2 changed files with 22 additions and 3 deletions
+3 -3
View File
@@ -148,9 +148,9 @@ struct GLPipelineState
rdctype::array<Buffer> UniformBuffers;
rdctype::array<Buffer> ShaderStorageBuffers;
struct Image
struct ImageLoadStore
{
Image()
ImageLoadStore()
: Resource(), Level(0), Layered(false), Layer(0),
ResType(eResType_None), readAllowed(false), writeAllowed(false)
{
@@ -164,7 +164,7 @@ struct GLPipelineState
bool32 writeAllowed;
ResourceFormat Format;
};
rdctype::array<Image> Images;
rdctype::array<ImageLoadStore> Images;
struct Feedback
{
+19
View File
@@ -159,7 +159,26 @@ namespace renderdoc
public UInt64 Size;
};
[CustomMarshalAs(CustomUnmanagedType.TemplatedArray)]
public Buffer[] AtomicBuffers;
[CustomMarshalAs(CustomUnmanagedType.TemplatedArray)]
public Buffer[] UniformBuffers;
[CustomMarshalAs(CustomUnmanagedType.TemplatedArray)]
public Buffer[] ShaderStorageBuffers;
[StructLayout(LayoutKind.Sequential)]
public class ImageLoadStore
{
public ResourceId Resource;
public UInt32 Level;
public bool Layered;
public UInt32 Layer;
public ShaderResourceType ResType;
public bool readAllowed;
public bool writeAllowed;
public ResourceFormat Format;
};
[CustomMarshalAs(CustomUnmanagedType.TemplatedArray)]
public ImageLoadStore[] Images;
[StructLayout(LayoutKind.Sequential)]
public class Feedback