public virtual void SetGraphicsRootSignature(
            ID3D12RootSignature pRootSignature
            )
        {
            var fp = GetFunctionPointer(30);

            if (m_SetGraphicsRootSignatureFunc == null)
            {
                m_SetGraphicsRootSignatureFunc = (SetGraphicsRootSignatureFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SetGraphicsRootSignatureFunc));
            }

            m_SetGraphicsRootSignatureFunc(m_ptr, pRootSignature != null ? pRootSignature.Ptr : IntPtr.Zero);
        }
Exemple #2
0
        public virtual int CreateCommandSignature(
            ref D3D12_COMMAND_SIGNATURE_DESC pDesc,
            ID3D12RootSignature pRootSignature,
            ref Guid riid,
            out IntPtr ppvCommandSignature
            )
        {
            var fp = GetFunctionPointer(41);

            if (m_CreateCommandSignatureFunc == null)
            {
                m_CreateCommandSignatureFunc = (CreateCommandSignatureFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateCommandSignatureFunc));
            }

            return(m_CreateCommandSignatureFunc(m_ptr, ref pDesc, pRootSignature != null ? pRootSignature.Ptr : IntPtr.Zero, ref riid, out ppvCommandSignature));
        }