public static void IASetPrimitiveTopology(this ID3D11DeviceContext context, D3D_PRIMITIVE_TOPOLOGY topology)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            context.IASetPrimitiveTopology(topology);
        }
        public virtual void IASetPrimitiveTopology(
            D3D_PRIMITIVE_TOPOLOGY PrimitiveTopology
            )
        {
            var fp = GetFunctionPointer(20);

            if (m_IASetPrimitiveTopologyFunc == null)
            {
                m_IASetPrimitiveTopologyFunc = (IASetPrimitiveTopologyFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(IASetPrimitiveTopologyFunc));
            }

            m_IASetPrimitiveTopologyFunc(m_ptr, PrimitiveTopology);
        }
Exemple #3
0
 public void IASetPrimitiveTopology([NativeTypeName("D3D12_PRIMITIVE_TOPOLOGY")] D3D_PRIMITIVE_TOPOLOGY PrimitiveTopology)
 {
     ((delegate * unmanaged <ID3D12GraphicsCommandList2 *, D3D_PRIMITIVE_TOPOLOGY, void>)(lpVtbl[20]))((ID3D12GraphicsCommandList2 *)Unsafe.AsPointer(ref this), PrimitiveTopology);
 }
Exemple #4
0
 public void IASetPrimitiveTopology([NativeTypeName("D3D10_PRIMITIVE_TOPOLOGY")] D3D_PRIMITIVE_TOPOLOGY Topology)
 {
     ((delegate * unmanaged <ID3D10Device *, D3D_PRIMITIVE_TOPOLOGY, void>)(lpVtbl[18]))((ID3D10Device *)Unsafe.AsPointer(ref this), Topology);
 }
Exemple #5
0
 public void IASetPrimitiveTopology([NativeTypeName("D3D11_PRIMITIVE_TOPOLOGY")] D3D_PRIMITIVE_TOPOLOGY Topology)
 {
     ((delegate * stdcall <ID3D11DeviceContext *, D3D_PRIMITIVE_TOPOLOGY, void>)(lpVtbl[24]))((ID3D11DeviceContext *)Unsafe.AsPointer(ref this), Topology);
 }
 public static void IASetPrimitiveTopology(this IComObject <ID3D11DeviceContext> context, D3D_PRIMITIVE_TOPOLOGY topology) => IASetPrimitiveTopology(context?.Object, topology);
 /// <summary>
 /// Sets the primitive toplogy for geometry
 /// </summary>
 /// <param name="topology">The <see cref="D3D_PRIMITIVE_TOPOLOGY"/> to use</param>
 public void SetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY topology)
 {
     _list.Get()->IASetPrimitiveTopology(topology);
 }