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); }
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); }
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)); }
public ID3D12VideoDecoderHeap1 CreateVideoDecoderHeap1(VideoDecoderHeapDescription description, ID3D12ProtectedResourceSession protectedResourceSession) { CreateVideoDecoderHeap1(ref description, protectedResourceSession, typeof(ID3D12VideoDecoderHeap1).GUID, out IntPtr nativePtr).CheckError(); return(new ID3D12VideoDecoderHeap1(nativePtr)); }
public T CreateVideoDecoderHeap <T>(VideoDecoderHeapDescription description) where T : ID3D12VideoDecoderHeap { CreateVideoDecoderHeap(ref description, typeof(T).GUID, out IntPtr nativePtr).CheckError(); return(MarshallingHelpers.FromPointer <T>(nativePtr)); }
public ID3D12VideoDecoderHeap CreateVideoDecoderHeap(VideoDecoderHeapDescription description) { CreateVideoDecoderHeap(ref description, typeof(ID3D12VideoDecoderHeap).GUID, out IntPtr nativePtr).CheckError(); return(new ID3D12VideoDecoderHeap(nativePtr)); }