예제 #1
0
        /// <summary>
        ///
        /// </summary>
        internal static unsafe IndirectCommandsToken MarshalFrom(SharpVk.Interop.NVidia.Experimental.IndirectCommandsToken *pointer)
        {
            IndirectCommandsToken result = default(IndirectCommandsToken);

            result.TokenType = pointer->TokenType;
            result.Buffer    = new SharpVk.Buffer(default(SharpVk.Device), pointer->Buffer);
            result.Offset    = pointer->Offset;
            return(result);
        }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 internal unsafe void MarshalTo(SharpVk.Interop.NVidia.Experimental.IndirectCommandsToken *pointer)
 {
     pointer->TokenType = this.TokenType;
     pointer->Buffer    = this.Buffer?.handle ?? default(SharpVk.Interop.Buffer);
     pointer->Offset    = this.Offset;
 }