public virtual void SetProtectedResourceSession(
            ID3D12ProtectedResourceSession pProtectedResourceSession
            )
        {
            var fp = GetFunctionPointer(67);

            if (m_SetProtectedResourceSessionFunc == null)
            {
                m_SetProtectedResourceSessionFunc = (SetProtectedResourceSessionFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SetProtectedResourceSessionFunc));
            }

            m_SetProtectedResourceSessionFunc(m_ptr, pProtectedResourceSession != null ? pProtectedResourceSession.Ptr : IntPtr.Zero);
        }
示例#2
0
        public virtual int CreateHeap1(
            ref D3D12_HEAP_DESC pDesc,
            ID3D12ProtectedResourceSession pProtectedSession,
            ref Guid riid,
            out IntPtr ppvHeap
            )
        {
            var fp = GetFunctionPointer(54);

            if (m_CreateHeap1Func == null)
            {
                m_CreateHeap1Func = (CreateHeap1Func)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateHeap1Func));
            }

            return(m_CreateHeap1Func(m_ptr, ref pDesc, pProtectedSession != null ? pProtectedSession.Ptr : IntPtr.Zero, ref riid, out ppvHeap));
        }
示例#3
0
        public virtual int CreateReservedResource1(
            ref D3D12_RESOURCE_DESC pDesc,
            D3D12_RESOURCE_STATES InitialState,
            ref D3D12_CLEAR_VALUE pOptimizedClearValue,
            ID3D12ProtectedResourceSession pProtectedSession,
            ref Guid riid,
            out IntPtr ppvResource
            )
        {
            var fp = GetFunctionPointer(55);

            if (m_CreateReservedResource1Func == null)
            {
                m_CreateReservedResource1Func = (CreateReservedResource1Func)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateReservedResource1Func));
            }

            return(m_CreateReservedResource1Func(m_ptr, ref pDesc, InitialState, ref pOptimizedClearValue, pProtectedSession != null ? pProtectedSession.Ptr : IntPtr.Zero, ref riid, out ppvResource));
        }
示例#4
0
        public virtual int CreateCommittedResource1(
            ref D3D12_HEAP_PROPERTIES pHeapProperties,
            D3D12_HEAP_FLAGS HeapFlags,
            ref D3D12_RESOURCE_DESC pDesc,
            D3D12_RESOURCE_STATES InitialResourceState,
            ref D3D12_CLEAR_VALUE pOptimizedClearValue,
            ID3D12ProtectedResourceSession pProtectedSession,
            ref Guid riidResource,
            out IntPtr ppvResource
            )
        {
            var fp = GetFunctionPointer(53);

            if (m_CreateCommittedResource1Func == null)
            {
                m_CreateCommittedResource1Func = (CreateCommittedResource1Func)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateCommittedResource1Func));
            }

            return(m_CreateCommittedResource1Func(m_ptr, ref pHeapProperties, HeapFlags, ref pDesc, InitialResourceState, ref pOptimizedClearValue, pProtectedSession != null ? pProtectedSession.Ptr : IntPtr.Zero, ref riidResource, out ppvResource));
        }