/// <summary> /// /// </summary> internal unsafe void MarshalTo(SharpVk.Interop.ShaderModuleCreateInfo *pointer) { pointer->SType = StructureType.ShaderModuleCreateInfo; pointer->Next = null; if (this.Flags != null) { pointer->Flags = this.Flags.Value; } else { pointer->Flags = default(SharpVk.ShaderModuleCreateFlags); } pointer->CodeSize = this.CodeSize; if (this.Code != null) { var fieldPointer = (uint *)(Interop.HeapUtil.AllocateAndClear <uint>(this.Code.Length).ToPointer()); for (int index = 0; index < (uint)(this.Code.Length); index++) { fieldPointer[index] = this.Code[index]; } pointer->Code = fieldPointer; } else { pointer->Code = null; } }
public static extern SharpVk.Result vkCreateShaderModule(SharpVk.Interop.Device device, SharpVk.Interop.ShaderModuleCreateInfo *createInfo, SharpVk.Interop.AllocationCallbacks *allocator, SharpVk.Interop.ShaderModule *shaderModule);