コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 internal unsafe void MarshalTo(SharpVk.Interop.NVidia.GeometryAABB *pointer)
 {
     pointer->SType    = StructureType.GeometryAabb;
     pointer->Next     = null;
     pointer->AabbData = this.AabbData?.handle ?? default(SharpVk.Interop.Buffer);
     pointer->NumAABBs = this.NumAABBs;
     pointer->Stride   = this.Stride;
     pointer->Offset   = this.Offset;
 }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        internal static unsafe GeometryAABB MarshalFrom(SharpVk.Interop.NVidia.GeometryAABB *pointer)
        {
            GeometryAABB result = default(GeometryAABB);

            result.AabbData = new SharpVk.Buffer(default(SharpVk.Device), pointer->AabbData);
            result.NumAABBs = pointer->NumAABBs;
            result.Stride   = pointer->Stride;
            result.Offset   = pointer->Offset;
            return(result);
        }