Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Regenerated the sources with 1.0.69 specs
Browse files Browse the repository at this point in the history
  • Loading branch information
radekdoulik committed Mar 21, 2018
1 parent 3290516 commit 3ad92c1
Show file tree
Hide file tree
Showing 5 changed files with 309 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/Vulkan/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,8 @@ public enum StructureType : int
PipelineViewportSwizzleStateCreateInfoNv = 1000098000,
PhysicalDeviceDiscardRectanglePropertiesExt = 1000099000,
PipelineDiscardRectangleStateCreateInfoExt = 1000099001,
PhysicalDeviceConservativeRasterizationPropertiesExt = 1000101000,
PipelineRasterizationConservativeStateCreateInfoExt = 1000101001,
HdrMetadataExt = 1000105000,
SharedPresentSurfaceCapabilitiesKhr = 1000111000,
PhysicalDeviceExternalFenceInfoKhr = 1000112000,
Expand Down Expand Up @@ -1054,6 +1056,9 @@ public enum StructureType : int
ValidationCacheCreateInfoExt = 1000160000,
ShaderModuleValidationCacheCreateInfoExt = 1000160001,
DeviceQueueGlobalPriorityCreateInfoExt = 1000174000,
ImportMemoryHostPointerInfoExt = 1000178000,
MemoryHostPointerPropertiesExt = 1000178001,
PhysicalDeviceExternalMemoryHostPropertiesExt = 1000178002,
}

public enum SystemAllocationScope : int
Expand Down Expand Up @@ -1303,6 +1308,13 @@ public enum QueueGlobalPriorityExt : int
Realtime = 1024,
}

public enum ConservativeRasterizationModeExt : int
{
Disabled = 0,
Overestimate = 1,
Underestimate = 2,
}

public enum ColorSpaceKhr : int
{
SrgbNonlinear = 0,
Expand Down Expand Up @@ -1409,7 +1421,7 @@ public enum DebugReportObjectTypeExt : int
DisplayModeKhr = 30,
ObjectTableNvx = 31,
IndirectCommandsLayoutNvx = 32,
ValidationCache = 33,
ValidationCacheExt = 33,
DescriptorUpdateTemplateKhr = 1000085000,
SamplerYcbcrConversionKhr = 1000156000,
}
Expand Down Expand Up @@ -1453,6 +1465,9 @@ public enum ExternalMemoryHandleTypeFlagsKhr : int
D3D11TextureKmt = 0x10,
D3D12Heap = 0x20,
D3D12Resource = 0x40,
DmaBufBitExt = 0x200,
HostAllocationBitExt = 0x80,
HostMappedForeignMemoryBitExt = 0x100,
}

[Flags]
Expand Down
21 changes: 21 additions & 0 deletions src/Vulkan/Handles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2747,6 +2747,20 @@ public void AcquireImageANDROID (Image image, int nativeFenceFd, Semaphore semap
throw new ResultException (result);
}
}

public MemoryHostPointerPropertiesExt GetMemoryHostPointerPropertiesEXT (ExternalMemoryHandleTypeFlagsKhr handleType, IntPtr pHostPointer)
{
Result result;
MemoryHostPointerPropertiesExt pMemoryHostPointerProperties;
unsafe {
pMemoryHostPointerProperties = new MemoryHostPointerPropertiesExt ();
result = Interop.NativeMethods.vkGetMemoryHostPointerPropertiesEXT (this.m, handleType, pHostPointer, pMemoryHostPointerProperties != null ? pMemoryHostPointerProperties.m : (Interop.MemoryHostPointerPropertiesExt*)default(IntPtr));
if (result != Result.Success)
throw new ResultException (result);

return pMemoryHostPointerProperties;
}
}
}

public partial class Queue : IMarshalling
Expand Down Expand Up @@ -3626,6 +3640,13 @@ public void CmdSetSampleLocationsEXT (SampleLocationsInfoExt pSampleLocationsInf
Interop.NativeMethods.vkCmdSetSampleLocationsEXT (this.m, pSampleLocationsInfo != null ? pSampleLocationsInfo.m : (Interop.SampleLocationsInfoExt*)default(IntPtr));
}
}

public void CmdWriteBufferMarkerAMD (PipelineStageFlags pipelineStage, Buffer dstBuffer, DeviceSize dstOffset, UInt32 marker)
{
unsafe {
Interop.NativeMethods.vkCmdWriteBufferMarkerAMD (this.m, pipelineStage, dstBuffer != null ? dstBuffer.m : default(UInt64), dstOffset, marker);
}
}
}

public partial class DeviceMemory : INonDispatchableHandleMarshalling
Expand Down
6 changes: 6 additions & 0 deletions src/Vulkan/Interop/ImportedCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -745,5 +745,11 @@ internal static class NativeMethods

[DllImport (VulkanLibrary, CallingConvention = CallingConvention.Winapi)]
internal static unsafe extern Result vkGetShaderInfoAMD (IntPtr device, UInt64 pipeline, ShaderStageFlags shaderStage, ShaderInfoTypeAmd infoType, UIntPtr* pInfoSize, IntPtr pInfo);

[DllImport (VulkanLibrary, CallingConvention = CallingConvention.Winapi)]
internal static unsafe extern Result vkGetMemoryHostPointerPropertiesEXT (IntPtr device, ExternalMemoryHandleTypeFlagsKhr handleType, IntPtr pHostPointer, MemoryHostPointerPropertiesExt* pMemoryHostPointerProperties);

[DllImport (VulkanLibrary, CallingConvention = CallingConvention.Winapi)]
internal static unsafe extern void vkCmdWriteBufferMarkerAMD (IntPtr commandBuffer, PipelineStageFlags pipelineStage, UInt64 dstBuffer, DeviceSize dstOffset, UInt32 marker);
}
}
46 changes: 46 additions & 0 deletions src/Vulkan/Interop/MarshalStructs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2119,4 +2119,50 @@ internal partial struct DeviceQueueGlobalPriorityCreateInfoExt
internal IntPtr Next;
internal QueueGlobalPriorityExt GlobalPriority;
}

internal partial struct ImportMemoryHostPointerInfoExt
{
internal StructureType SType;
internal IntPtr Next;
internal ExternalMemoryHandleTypeFlagsKhr HandleType;
internal IntPtr HostPointer;
}

internal partial struct MemoryHostPointerPropertiesExt
{
internal StructureType SType;
internal IntPtr Next;
internal UInt32 MemoryTypeBits;
}

internal partial struct PhysicalDeviceExternalMemoryHostPropertiesExt
{
internal StructureType SType;
internal IntPtr Next;
internal DeviceSize MinImportedHostPointerAlignment;
}

internal partial struct PhysicalDeviceConservativeRasterizationPropertiesExt
{
internal StructureType SType;
internal IntPtr Next;
internal float PrimitiveOverestimationSize;
internal float MaxExtraPrimitiveOverestimationSize;
internal float ExtraPrimitiveOverestimationSizeGranularity;
internal Bool32 PrimitiveUnderestimation;
internal Bool32 ConservativePointAndLineRasterization;
internal Bool32 DegenerateTrianglesRasterized;
internal Bool32 DegenerateLinesRasterized;
internal Bool32 FullyCoveredFragmentShaderInputVariable;
internal Bool32 ConservativeRasterizationPostDepthCoverage;
}

internal partial struct PipelineRasterizationConservativeStateCreateInfoExt
{
internal StructureType SType;
internal IntPtr Next;
internal UInt32 Flags;
internal ConservativeRasterizationModeExt ConservativeRasterizationMode;
internal float ExtraPrimitiveOverestimationSize;
}
}
220 changes: 220 additions & 0 deletions src/Vulkan/Structs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14100,4 +14100,224 @@ internal void Initialize ()
}

}

unsafe public partial class ImportMemoryHostPointerInfoExt : MarshalledObject
{
public ExternalMemoryHandleTypeFlagsKhr HandleType {
get { return m->HandleType; }
set { m->HandleType = value; }
}

public IntPtr HostPointer {
get { return m->HostPointer; }
set { m->HostPointer = value; }
}
internal Interop.ImportMemoryHostPointerInfoExt* m {

get {
return (Interop.ImportMemoryHostPointerInfoExt*)native.Handle;
}
}

public ImportMemoryHostPointerInfoExt ()
{
native = Interop.Structure.Allocate (typeof (Interop.ImportMemoryHostPointerInfoExt));
Initialize ();
}

internal ImportMemoryHostPointerInfoExt (NativePointer pointer)
{
native = pointer;
Initialize ();
}


internal void Initialize ()
{
m->SType = StructureType.ImportMemoryHostPointerInfoExt;
}

}

unsafe public partial class MemoryHostPointerPropertiesExt : MarshalledObject
{
public UInt32 MemoryTypeBits {
get { return m->MemoryTypeBits; }
set { m->MemoryTypeBits = value; }
}
internal Interop.MemoryHostPointerPropertiesExt* m {

get {
return (Interop.MemoryHostPointerPropertiesExt*)native.Handle;
}
}

public MemoryHostPointerPropertiesExt ()
{
native = Interop.Structure.Allocate (typeof (Interop.MemoryHostPointerPropertiesExt));
Initialize ();
}

internal MemoryHostPointerPropertiesExt (NativePointer pointer)
{
native = pointer;
Initialize ();
}


internal void Initialize ()
{
m->SType = StructureType.MemoryHostPointerPropertiesExt;
}

}

unsafe public partial class PhysicalDeviceExternalMemoryHostPropertiesExt : MarshalledObject
{
public DeviceSize MinImportedHostPointerAlignment {
get { return m->MinImportedHostPointerAlignment; }
set { m->MinImportedHostPointerAlignment = value; }
}
internal Interop.PhysicalDeviceExternalMemoryHostPropertiesExt* m {

get {
return (Interop.PhysicalDeviceExternalMemoryHostPropertiesExt*)native.Handle;
}
}

public PhysicalDeviceExternalMemoryHostPropertiesExt ()
{
native = Interop.Structure.Allocate (typeof (Interop.PhysicalDeviceExternalMemoryHostPropertiesExt));
Initialize ();
}

internal PhysicalDeviceExternalMemoryHostPropertiesExt (NativePointer pointer)
{
native = pointer;
Initialize ();
}


internal void Initialize ()
{
m->SType = StructureType.PhysicalDeviceExternalMemoryHostPropertiesExt;
}

}

unsafe public partial class PhysicalDeviceConservativeRasterizationPropertiesExt : MarshalledObject
{
public float PrimitiveOverestimationSize {
get { return m->PrimitiveOverestimationSize; }
set { m->PrimitiveOverestimationSize = value; }
}

public float MaxExtraPrimitiveOverestimationSize {
get { return m->MaxExtraPrimitiveOverestimationSize; }
set { m->MaxExtraPrimitiveOverestimationSize = value; }
}

public float ExtraPrimitiveOverestimationSizeGranularity {
get { return m->ExtraPrimitiveOverestimationSizeGranularity; }
set { m->ExtraPrimitiveOverestimationSizeGranularity = value; }
}

public bool PrimitiveUnderestimation {
get { return m->PrimitiveUnderestimation; }
set { m->PrimitiveUnderestimation = value; }
}

public bool ConservativePointAndLineRasterization {
get { return m->ConservativePointAndLineRasterization; }
set { m->ConservativePointAndLineRasterization = value; }
}

public bool DegenerateTrianglesRasterized {
get { return m->DegenerateTrianglesRasterized; }
set { m->DegenerateTrianglesRasterized = value; }
}

public bool DegenerateLinesRasterized {
get { return m->DegenerateLinesRasterized; }
set { m->DegenerateLinesRasterized = value; }
}

public bool FullyCoveredFragmentShaderInputVariable {
get { return m->FullyCoveredFragmentShaderInputVariable; }
set { m->FullyCoveredFragmentShaderInputVariable = value; }
}

public bool ConservativeRasterizationPostDepthCoverage {
get { return m->ConservativeRasterizationPostDepthCoverage; }
set { m->ConservativeRasterizationPostDepthCoverage = value; }
}
internal Interop.PhysicalDeviceConservativeRasterizationPropertiesExt* m {

get {
return (Interop.PhysicalDeviceConservativeRasterizationPropertiesExt*)native.Handle;
}
}

public PhysicalDeviceConservativeRasterizationPropertiesExt ()
{
native = Interop.Structure.Allocate (typeof (Interop.PhysicalDeviceConservativeRasterizationPropertiesExt));
Initialize ();
}

internal PhysicalDeviceConservativeRasterizationPropertiesExt (NativePointer pointer)
{
native = pointer;
Initialize ();
}


internal void Initialize ()
{
m->SType = StructureType.PhysicalDeviceConservativeRasterizationPropertiesExt;
}

}

unsafe public partial class PipelineRasterizationConservativeStateCreateInfoExt : MarshalledObject
{
public UInt32 Flags {
get { return m->Flags; }
set { m->Flags = value; }
}

public ConservativeRasterizationModeExt ConservativeRasterizationMode {
get { return m->ConservativeRasterizationMode; }
set { m->ConservativeRasterizationMode = value; }
}

public float ExtraPrimitiveOverestimationSize {
get { return m->ExtraPrimitiveOverestimationSize; }
set { m->ExtraPrimitiveOverestimationSize = value; }
}
internal Interop.PipelineRasterizationConservativeStateCreateInfoExt* m {

get {
return (Interop.PipelineRasterizationConservativeStateCreateInfoExt*)native.Handle;
}
}

public PipelineRasterizationConservativeStateCreateInfoExt ()
{
native = Interop.Structure.Allocate (typeof (Interop.PipelineRasterizationConservativeStateCreateInfoExt));
Initialize ();
}

internal PipelineRasterizationConservativeStateCreateInfoExt (NativePointer pointer)
{
native = pointer;
Initialize ();
}


internal void Initialize ()
{
m->SType = StructureType.PipelineRasterizationConservativeStateCreateInfoExt;
}

}
}

0 comments on commit 3ad92c1

Please sign in to comment.