| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.WGPU.Core
Documentation
c_wgpuCreateInstance :: Ptr () -> IO (Ptr WGPUInstance) Source #
wgpuInstanceCreateSurface :: Ptr WGPUInstance -> ConstPtr WGPUSurfaceDescriptor -> IO (Ptr WGPUSurface) Source #
wgpuInstanceProcessEvents :: Ptr WGPUInstance -> IO () Source #
wgpuInstanceRequestAdapter :: Ptr WGPUInstance -> Ptr WGPUSurface -> IO (Ptr WGPUAdapter) Source #
wgpuAdapterRequestDevice :: Ptr WGPUAdapter -> IO (Ptr WGPUDevice) Source #
wgpuDeviceGetQueue :: Ptr WGPUDevice -> IO (Ptr WGPUQueue) Source #
wgpuDeviceCreateShaderModule :: Ptr WGPUDevice -> ConstPtr WGPUShaderModuleDescriptor -> IO (Ptr WGPUShaderModule) Source #
bsAsWGPUString :: ByteString -> (WGPUStringView -> IO a) -> IO a Source #
wgpuDeviceCreatePipelineLayout :: Ptr WGPUDevice -> ConstPtr WGPUPipelineLayoutDescriptor -> IO (Ptr WGPUPipelineLayout) Source #
wgpuSurfaceGetCapabilities :: Ptr WGPUSurface -> Ptr WGPUAdapter -> Ptr WGPUSurfaceCapabilities -> IO () Source #
withWGPUString :: String -> (WGPUStringView -> IO a) -> IO a Source #
wgpuDeviceCreateRenderPipeline :: Ptr WGPUDevice -> Ptr WGPURenderPipelineDescriptor -> IO (Ptr WGPURenderPipeline) Source #
wgpuSurfaceConfigure :: Ptr WGPUSurface -> ConstPtr WGPUSurfaceConfiguration -> IO () Source #
wgpuSurfaceGetCurrentTexture :: Ptr WGPUSurface -> Ptr WGPUSurfaceTexture -> IO () Source #
wgpuTextureCreateView :: Ptr WGPUTexture -> ConstPtr WGPUTextureViewDescriptor -> IO (Ptr WGPUTextureView) Source #
wgpuDeviceCreateCommandEncoder :: Ptr WGPUDevice -> Ptr WGPUCommandEncoderDescriptor -> IO (Ptr WGPUCommandEncoder) Source #
wgpuCommandEncoderBeginRenderPass :: Ptr WGPUCommandEncoder -> ConstPtr WGPURenderPassDescriptor -> IO (Ptr WGPURenderPassEncoder) Source #
wgpuRenderPassEncoderSetPipeline :: Ptr WGPURenderPassEncoder -> Ptr WGPURenderPipeline -> IO () Source #
wgpuRenderPassEncoderDraw :: Ptr WGPURenderPassEncoder -> Word32 -> Word32 -> Word32 -> Word32 -> IO () Source #
wgpuCommandEncoderFinish :: Ptr WGPUCommandEncoder -> ConstPtr WGPUCommandBufferDescriptor -> IO (Ptr WGPUCommandBuffer) Source #
wgpuQueueSubmit :: Ptr WGPUQueue -> CSize -> ConstPtr (Ptr WGPUCommandBuffer) -> IO () Source #
wgpuRenderPipelineRelease :: Ptr WGPURenderPipeline -> IO () Source #
wgpuPipelineLayoutRelease :: Ptr WGPUPipelineLayout -> IO () Source #
wgpuSurfacePresent :: Ptr WGPUSurface -> IO () Source #
wgpuDeviceRelease :: Ptr WGPUDevice -> IO () Source #
wgpuAdapterRelease :: Ptr WGPUAdapter -> IO () Source #
wgpuSurfaceRelease :: Ptr WGPUSurface -> IO () Source #
wgpuShaderModuleRelease :: Ptr WGPUShaderModule -> IO () Source #
wgpuInstanceRelease :: Ptr WGPUInstance -> IO () Source #
wgpuCommandBufferRelease :: Ptr WGPUCommandBuffer -> IO () Source #
wgpuCommandEncoderRelease :: Ptr WGPUCommandEncoder -> IO () Source #
wgpuTextureViewRelease :: Ptr WGPUTextureView -> IO () Source #
wgpuTextureRelease :: Ptr WGPUTexture -> IO () Source #
wgpuQueueWriteTexture :: Ptr WGPUQueue -> ConstPtr WGPUTexelCopyTextureInfo -> ConstPtr Void -> CSize -> ConstPtr WGPUTexelCopyBufferLayout -> ConstPtr WGPUExtent3D -> IO () Source #
wgpuDeviceCreateTexture :: Ptr WGPUDevice -> ConstPtr WGPUTextureDescriptor -> IO (Ptr WGPUTexture) Source #
wgpuDeviceCreateSampler :: Ptr WGPUDevice -> ConstPtr WGPUSamplerDescriptor -> IO (Ptr WGPUSampler) Source #
wgpuDeviceCreateBindGroup :: Ptr WGPUDevice -> ConstPtr WGPUBindGroupDescriptor -> IO (Ptr WGPUBindGroup) Source #
wgpuDeviceCreateBindGroupLayout :: Ptr WGPUDevice -> ConstPtr WGPUBindGroupLayoutDescriptor -> IO (Ptr WGPUBindGroupLayout) Source #
wgpuRenderPassEncoderSetBindGroup :: Ptr WGPURenderPassEncoder -> Word32 -> Ptr WGPUBindGroup -> CSize -> ConstPtr Word32 -> IO () Source #