public T CreateCommandList1 <T>(CommandListType type, CommandListFlags commandListFlags = CommandListFlags.None) where T : ID3D12GraphicsCommandList1 { Result result = CreateCommandList1(0, type, commandListFlags, typeof(T).GUID, out IntPtr nativePtr); if (result.Failure) { return(default);
public Result CreateCommandList1 <T>(int nodeMask, CommandListType type, CommandListFlags commandListFlags, out T?commandList) where T : ID3D12GraphicsCommandList1 { Result result = CreateCommandList1(nodeMask, type, commandListFlags, typeof(T).GUID, out IntPtr nativePtr); if (result.Failure) { commandList = default; return(result); } commandList = MarshallingHelpers.FromPointer <T>(nativePtr); return(result); }
public T CreateCommandList1 <T>(CommandListType type, CommandListFlags commandListFlags = CommandListFlags.None) where T : ID3D12GraphicsCommandList1 { CreateCommandList1(0, type, commandListFlags, typeof(T).GUID, out IntPtr nativePtr).CheckError(); return(MarshallingHelpers.FromPointer <T>(nativePtr)); }
public Result CreateCommandList1 <T>(CommandListType type, CommandListFlags commandListFlags, out T?commandList) where T : ID3D12GraphicsCommandList1 { return(CreateCommandList1 <T>(0, type, commandListFlags, out commandList)); }
public ID3D12GraphicsCommandList1 CreateCommandList1(CommandListType type, CommandListFlags commandListFlags = CommandListFlags.None) { return(CreateCommandList1(0, type, commandListFlags, typeof(ID3D12GraphicsCommandList1).GUID)); }