Esempio n. 1
0
 public int CreateSamplerState(ref D3D11_SAMPLER_DESC pSamplerDesc, ref IntPtr ppSamplerState)
 {
     if (m_CreateSamplerStateFunc == null)
     {
         var fp = GetFunctionPointer(23);
         m_CreateSamplerStateFunc = (CreateSamplerStateFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateSamplerStateFunc));
     }
     return(m_CreateSamplerStateFunc(m_ptr, ref pSamplerDesc, ref ppSamplerState));
 }
Esempio n. 2
0
 public void GetDesc(ref D3D11_SAMPLER_DESC pDesc)
 {
     if (m_GetDescFunc == null)
     {
         var fp = GetFunctionPointer(7);
         m_GetDescFunc = (GetDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescFunc));
     }
     m_GetDescFunc(m_ptr, ref pDesc);
 }