Example #1
0
 public static extern InteropBool ResourceFactory_CreateBlendState(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     InteropBool enableBlending,
     BlendOperation blendOperation,
     IntPtr outBlendStateHandle
     );
Example #2
0
 public static extern InteropBool ResourceFactory_CreateDSState(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     InteropBool enableDepthTesting,
     DepthComparisonFunction depthComparisonFunction,
     IntPtr outDepthStencilStateHandle
     );
Example #3
0
 public static extern InteropBool ResourceFactory_CreateSRVToTexture2DMS(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     Texture2DResourceHandle texture2DHandle,
     ResourceFormat format,
     IntPtr outSRVHandle
     );
Example #4
0
 public static extern InteropBool ShaderManager_LoadShader(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     [MarshalAs(InteropUtils.INTEROP_STRING_TYPE)] string shaderFilePath,
     ShaderType type,
     IntPtr outShaderPtr             // ShaderHandle*
     );
Example #5
0
 public static extern InteropBool ResourceFactory_CreateSRVToRawBuffer(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     BufferResourceHandle bufferHandle,
     uint firstElement,
     uint numElements,
     IntPtr outSRVHandle
     );
Example #6
0
 public static extern InteropBool ShaderManager_CreateInputLayout(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     ShaderHandle vertexShaderHandle,
     InputElementDesc[] inputElementDescArr,
     uint inputElementDescArrLen,
     IntPtr outInputLayoutPtr             // InputLayoutHandle*
     );
Example #7
0
 public static extern InteropBool ResourceFactory_CreateUAVToTexture2D(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     Texture2DResourceHandle texture1DHandle,
     ResourceFormat format,
     uint mipIndex,
     IntPtr outUAVHandle
     );
 public static extern InteropBool WindowFactory_CreateWindow(
     IntPtr failReason,
     [MarshalAs(InteropUtils.INTEROP_STRING_TYPE)] string iconFilePath,
     DeviceHandle deviceHandle,
     UInt32 bufferCount,
     IntPtr outWindowHandle,
     IntPtr outWindowClosureFlagPtr             // InteropBool**
     );
Example #9
0
 public static extern InteropBool ResourceFactory_CreateConstantBuffer(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     uint numBytes,
     int usage,
     int cpuUsage,
     IntPtr initialDataPtr,
     IntPtr outBufferHandle
     );
Example #10
0
 public static extern InteropBool ResourceFactory_CreateRTV(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     Texture2DResourceHandle texture2DHandle,
     uint mipIndex,
     ResourceFormat format,
     InteropBool isMultisampled,
     IntPtr outRTVHandle             // RenderTargetViewHandle*
     );
Example #11
0
 public static extern InteropBool ResourceFactory_CreateSRVToTexture2DMSArray(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     Texture2DResourceHandle texture2DHandle,
     ResourceFormat format,
     uint firstElementIndex,
     uint numElements,
     IntPtr outSRVHandle
     );
Example #12
0
 public static extern InteropBool ResourceFactory_CreateDSV(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     Texture2DResourceHandle texture2DHandle,
     uint mipIndex,
     ResourceFormat format,
     InteropBool isMultisampled,
     IntPtr outDSVHandle             // DepthStencilViewHandle*
     );
Example #13
0
 public static extern InteropBool ResourceFactory_CreateSRVToTexture1D(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     Texture1DResourceHandle texture1DHandle,
     ResourceFormat format,
     uint firstMipIndex,
     uint numMips,
     IntPtr outSRVHandle
     );
Example #14
0
 public static extern InteropBool ResourceFactory_CreateVertexBuffer(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     uint vertexStructSizeBytes,
     uint numVertices,
     int usage,
     int cpuUsage,
     IntPtr initialDataPtr,
     IntPtr outBufferHandle
     );
Example #15
0
 public static extern InteropBool ResourceFactory_CreateUAVToTexture3D(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     Texture3DResourceHandle texture1DHandle,
     ResourceFormat format,
     uint mipIndex,
     uint firstWCoordOffset,
     uint wCoordRange,
     IntPtr outUAVHandle
     );
Example #16
0
 public static extern InteropBool ResourceFactory_CreateUAVToRawBuffer(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     BufferResourceHandle bufferHandle,
     uint firstElement,
     uint numElements,
     InteropBool appendConsume,
     InteropBool includeCounter,
     IntPtr outUAVHandle
     );
Example #17
0
 public static extern InteropBool ResourceFactory_CreateRSState(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     int fillMode,
     int cullMode,
     InteropBool flipFaces,
     int depthBias,
     float depthBiasClamp,
     float slopeScaledDepthBias,
     InteropBool enableZClipping,
     IntPtr outRasterizerStateHandle
     );
Example #18
0
 public static extern InteropBool ResourceFactory_CreateSSO(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     TextureFilterType filterType,
     TextureWrapMode wrapMode,
     AnisotropicFilteringLevel maxAnisotropy,
     float borderColorR,
     float borderColorG,
     float borderColorB,
     float borderColorA,
     IntPtr outSamplerStateHandle
     );
Example #19
0
 public static extern InteropBool ResourceFactory_CreateBuffer(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     uint elementSizeBytes,
     uint numElements,
     int usage,
     int cpuUsage,
     PipelineBindings pipelineBindings,
     InteropBool isStructured,
     InteropBool allowRawAccess,
     IntPtr initialDataPtr,
     IntPtr outBufferHandle
     );
Example #20
0
 public static extern InteropBool ResourceFactory_LoadTexture2D(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     [MarshalAs(InteropUtils.INTEROP_STRING_TYPE)] string filePath,
     InteropBool allocateMipmaps,
     int usage,
     int cpuUsage,
     PipelineBindings pipelineBindings,
     InteropBool allowMipGeneration,
     InteropBool allowLODClamping,
     IntPtr outTexture2DHandle,   // Texture2DResourceHandle*
     IntPtr outWidth,             // uint*
     IntPtr outHeight,            // uint*
     IntPtr outFormat             // ResourceFormat*
     );
Example #21
0
 public static extern InteropBool ResourceFactory_CreateTexture1DArray(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     uint widthTx,
     uint numTextures,
     InteropBool allocateMipmaps,
     ResourceFormat format,
     int usage,
     int cpuUsage,
     PipelineBindings pipelineBindings,
     InteropBool allowMipGeneration,
     InteropBool allowLODClamping,
     IntPtr initialDataArrayPtr,             // InitialResourceDataDesc[]
     uint initialDataArrayLen,
     IntPtr outTexture1DHandle
     );
 public static extern InteropBool ContextFactory_CreateDeferredContext(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     IntPtr outContextPtr
     );
 public static extern InteropBool ContextFactory_GetImmediateContext(
     IntPtr failReason,
     DeviceHandle deviceHandle,
     IntPtr outContextPtr
     );
 public static extern InteropBool DeviceFactory_ReleaseDevice(
     IntPtr failReason,
     DeviceHandle deviceHandle
     );