コード例 #1
0
    public Result CreateVideoDecoderHeap1 <T>(VideoDecoderHeapDescription description, ID3D12ProtectedResourceSession protectedResourceSession, out T?videoDecoder) where T : ID3D12VideoDecoderHeap1
    {
        Result result = CreateVideoDecoderHeap1(ref description, protectedResourceSession, typeof(T).GUID, out IntPtr nativePtr);

        if (result.Failure)
        {
            videoDecoder = default;
            return(result);
        }

        videoDecoder = MarshallingHelpers.FromPointer <T>(nativePtr);
        return(result);
    }
コード例 #2
0
    public Result CreateVideoDecoderHeap(VideoDecoderHeapDescription description, out ID3D12VideoDecoderHeap?videoDecoder)
    {
        Result result = CreateVideoDecoderHeap(ref description, typeof(ID3D12VideoDecoderHeap).GUID, out IntPtr nativePtr);

        if (result.Failure)
        {
            videoDecoder = default;
            return(result);
        }

        videoDecoder = new ID3D12VideoDecoderHeap(nativePtr);
        return(result);
    }
コード例 #3
0
 public T CreateVideoDecoderHeap1 <T>(VideoDecoderHeapDescription description, ID3D12ProtectedResourceSession protectedResourceSession) where T : ID3D12VideoDecoderHeap1
 {
     CreateVideoDecoderHeap1(ref description, protectedResourceSession, typeof(T).GUID, out IntPtr nativePtr).CheckError();
     return(MarshallingHelpers.FromPointer <T>(nativePtr));
 }
コード例 #4
0
 public ID3D12VideoDecoderHeap1 CreateVideoDecoderHeap1(VideoDecoderHeapDescription description, ID3D12ProtectedResourceSession protectedResourceSession)
 {
     CreateVideoDecoderHeap1(ref description, protectedResourceSession, typeof(ID3D12VideoDecoderHeap1).GUID, out IntPtr nativePtr).CheckError();
     return(new ID3D12VideoDecoderHeap1(nativePtr));
 }
コード例 #5
0
 public T CreateVideoDecoderHeap <T>(VideoDecoderHeapDescription description) where T : ID3D12VideoDecoderHeap
 {
     CreateVideoDecoderHeap(ref description, typeof(T).GUID, out IntPtr nativePtr).CheckError();
     return(MarshallingHelpers.FromPointer <T>(nativePtr));
 }
コード例 #6
0
 public ID3D12VideoDecoderHeap CreateVideoDecoderHeap(VideoDecoderHeapDescription description)
 {
     CreateVideoDecoderHeap(ref description, typeof(ID3D12VideoDecoderHeap).GUID, out IntPtr nativePtr).CheckError();
     return(new ID3D12VideoDecoderHeap(nativePtr));
 }