public BaseInStructure ( StructureType sType = default, BaseInStructure *pNext = default ) { SType = sType; PNext = pNext; }
public BaseInStructure ( StructureType?type = null, BaseInStructure *next = null ) : this() { if (type is not null) { Type = type.Value; } if (next is not null) { Next = next; } }
public BaseInStructure ( StructureType?sType = null, BaseInStructure *pNext = null ) : this() { if (sType is not null) { SType = sType.Value; } if (pNext is not null) { PNext = pNext; } }
public unsafe void TestImplicitCastsToPointers() { using var chain = Chain.Create <PhysicalDeviceFeatures2, PhysicalDeviceDescriptorIndexingFeatures, PhysicalDeviceAccelerationStructureFeaturesKHR>(); PhysicalDeviceFeatures2 *p = chain; Assert.Equal((nint)p, (nint)chain.HeadPtr); BaseInStructure *b = chain; Assert.Equal((nint)b, (nint)chain.HeadPtr); void *v = chain; Assert.Equal((nint)v, (nint)chain.HeadPtr); nint n = chain; Assert.Equal(n, (nint)chain.HeadPtr); }