1234567891011121314151617181920212223242526272829303132333435 |
- using System.Runtime.InteropServices;
- namespace Veldrid.SPIRV
- {
- [StructLayout(LayoutKind.Sequential, Pack = 1)]
- internal struct ReflectionInfo
- {
- public InteropArray VertexElements; // InteropArray<NativeVertexElementDescription>
- public InteropArray ResourceLayouts; // InteropArray<NativeResourceLayoutDescription>
- }
- [StructLayout(LayoutKind.Sequential, Pack = 1)]
- internal struct NativeVertexElementDescription
- {
- public InteropArray Name; // InteropArray<byte>
- public VertexElementSemantic Semantic;
- public VertexElementFormat Format;
- public uint Offset;
- }
- [StructLayout(LayoutKind.Sequential, Pack = 1)]
- internal struct NativeResourceLayoutDescription
- {
- public InteropArray ResourceElements; // InteropArray<NativeResourceElementDescription>
- }
- [StructLayout(LayoutKind.Sequential, Pack = 1)]
- internal struct NativeResourceElementDescription
- {
- public InteropArray Name; // InteropArray<byte>
- public ResourceKind Kind;
- public ShaderStages Stages;
- public ResourceLayoutElementOptions Options;
- }
- }
|