Exemplo n.º 1
0
        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);
Exemplo n.º 2
0
    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);
    }
Exemplo n.º 3
0
 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));
 }
Exemplo n.º 4
0
 public Result CreateCommandList1 <T>(CommandListType type, CommandListFlags commandListFlags, out T?commandList) where T : ID3D12GraphicsCommandList1
 {
     return(CreateCommandList1 <T>(0, type, commandListFlags, out commandList));
 }
Exemplo n.º 5
0
 public ID3D12GraphicsCommandList1 CreateCommandList1(CommandListType type, CommandListFlags commandListFlags = CommandListFlags.None)
 {
     return(CreateCommandList1(0, type, commandListFlags, typeof(ID3D12GraphicsCommandList1).GUID));
 }