UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
Loading...
Searching...
No Matches
ufo::compute Namespace Reference

Classes

struct  GPUInfo
 

Functions

std::size_t bufferPaddedSize (std::size_t size)
 
std::size_t bufferPaddedSize (std::size_t width, std::size_t bytes_per_pixel)
 
WGPUAdapter createAdapter (WGPUInstance instance, WGPUSurface compatible_surface=nullptr, WGPUPowerPreference power_preference=WGPUPowerPreference_Undefined, WGPUBackendType backend_type=WGPUBackendType_Undefined, WGPUBool force_fallback_adapter=false)
 
WGPUBuffer createBuffer (WGPUDevice device, std::string label, std::size_t size, WGPUBufferUsage usage, bool mapped_at_creation=false)
 
WGPUBuffer createBufferInit (WGPUDevice device, std::string label, WGPUBufferUsage usage, void *content, std::size_t content_size)
 
WGPUBuffer createBufferInit (WGPUDevice device, WGPUBufferUsage usage, void *content, std::size_t content_size)
 
WGPUDevice createDevice (WGPUAdapter adapter, WGPULimits const *required_limits=nullptr)
 
WGPUInstance createInstance (WGPUInstanceDescriptor const *descriptor=nullptr)
 
GPUInfo gpuInfo (WGPUAdapter adapter=nullptr)
 
std::vector< GPUInfogpusInfo ()
 
WGPUShaderModule loadShaderModule (WGPUDevice device, std::filesystem::path const &path)
 
WGPUQueue queue (WGPUDevice device)
 
void release (WGPUAdapter adapter)
 
void release (WGPUBindGroupLayout bind_group_layout)
 
void release (WGPUCommandBuffer command_buffer)
 
void release (WGPUCommandEncoder command_encoder)
 
void release (WGPUDevice device)
 
void release (WGPUInstance instance)
 
void release (WGPUPipelineLayout pipeline_layout)
 
void release (WGPUQueue queue)
 
void release (WGPURenderPassEncoder render_pass_encoder)
 
void release (WGPURenderPipeline render_pipeline)
 
void release (WGPUSampler sampler)
 
void release (WGPUShaderModule shader_module)
 
void release (WGPUSurface surface)
 
void release (WGPUTexture texture)
 
void release (WGPUTextureView texture_view)
 
WGPUSurfaceCapabilities surfaceCapabilities (WGPUSurface surface, WGPUAdapter adapter)
 

Detailed Description

UFOMap: An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown

Author
Daniel Duberg (ddube.nosp@m.rg@k.nosp@m.th.se)
See also
https://github.com/UnknownFreeOccupied/ufomap
Version
1.0
Date
2022-05-13

BSD 3-Clause License

Copyright (c) 2022, Daniel Duberg, KTH Royal Institute of Technology All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Function Documentation

◆ bufferPaddedSize() [1/2]

std::size_t ufo::compute::bufferPaddedSize ( std::size_t  size)

Definition at line 173 of file compute.cpp.

◆ bufferPaddedSize() [2/2]

std::size_t ufo::compute::bufferPaddedSize ( std::size_t  width,
std::size_t  bytes_per_pixel 
)

Definition at line 180 of file compute.cpp.

◆ createAdapter()

WGPUAdapter ufo::compute::createAdapter ( WGPUInstance  instance,
WGPUSurface  compatible_surface = nullptr,
WGPUPowerPreference  power_preference = WGPUPowerPreference_Undefined,
WGPUBackendType  backend_type = WGPUBackendType_Undefined,
WGPUBool  force_fallback_adapter = false 
)

Definition at line 63 of file compute.cpp.

◆ createBuffer()

WGPUBuffer ufo::compute::createBuffer ( WGPUDevice  device,
std::string  label,
std::size_t  size,
WGPUBufferUsage  usage,
bool  mapped_at_creation = false 
)

Definition at line 192 of file compute.cpp.

◆ createBufferInit()

WGPUBuffer ufo::compute::createBufferInit ( WGPUDevice  device,
std::string  label,
WGPUBufferUsage  usage,
void *  content,
std::size_t  content_size 
)

Definition at line 205 of file compute.cpp.

◆ createDevice()

WGPUDevice ufo::compute::createDevice ( WGPUAdapter  adapter,
WGPULimits const *  required_limits = nullptr 
)

Definition at line 107 of file compute.cpp.

◆ createInstance()

WGPUInstance ufo::compute::createInstance ( WGPUInstanceDescriptor const *  descriptor = nullptr)

Definition at line 56 of file compute.cpp.

◆ gpuInfo()

GPUInfo ufo::compute::gpuInfo ( WGPUAdapter  adapter = nullptr)

Definition at line 305 of file compute.cpp.

◆ gpusInfo()

std::vector< GPUInfo > ufo::compute::gpusInfo ( )

Definition at line 376 of file compute.cpp.

◆ loadShaderModule()

WGPUShaderModule ufo::compute::loadShaderModule ( WGPUDevice  device,
std::filesystem::path const &  path 
)

Definition at line 230 of file compute.cpp.

◆ queue()

WGPUQueue ufo::compute::queue ( WGPUDevice  device)

Definition at line 167 of file compute.cpp.

◆ release() [1/15]

void ufo::compute::release ( WGPUAdapter  adapter)

Definition at line 261 of file compute.cpp.

◆ release() [2/15]

void ufo::compute::release ( WGPUBindGroupLayout  bind_group_layout)

Definition at line 269 of file compute.cpp.

◆ release() [3/15]

void ufo::compute::release ( WGPUCommandBuffer  command_buffer)

Definition at line 298 of file compute.cpp.

◆ release() [4/15]

void ufo::compute::release ( WGPUCommandEncoder  command_encoder)

Definition at line 293 of file compute.cpp.

◆ release() [5/15]

void ufo::compute::release ( WGPUDevice  device)

Definition at line 263 of file compute.cpp.

◆ release() [6/15]

void ufo::compute::release ( WGPUInstance  instance)

Definition at line 257 of file compute.cpp.

◆ release() [7/15]

void ufo::compute::release ( WGPUPipelineLayout  pipeline_layout)

Definition at line 274 of file compute.cpp.

◆ release() [8/15]

void ufo::compute::release ( WGPUQueue  queue)

Definition at line 265 of file compute.cpp.

◆ release() [9/15]

void ufo::compute::release ( WGPURenderPassEncoder  render_pass_encoder)

Definition at line 288 of file compute.cpp.

◆ release() [10/15]

void ufo::compute::release ( WGPURenderPipeline  render_pipeline)

Definition at line 279 of file compute.cpp.

◆ release() [11/15]

void ufo::compute::release ( WGPUSampler  sampler)

Definition at line 303 of file compute.cpp.

◆ release() [12/15]

void ufo::compute::release ( WGPUShaderModule  shader_module)

Definition at line 267 of file compute.cpp.

◆ release() [13/15]

void ufo::compute::release ( WGPUSurface  surface)

Definition at line 259 of file compute.cpp.

◆ release() [14/15]

void ufo::compute::release ( WGPUTexture  texture)

Definition at line 284 of file compute.cpp.

◆ release() [15/15]

void ufo::compute::release ( WGPUTextureView  texture_view)

Definition at line 286 of file compute.cpp.

◆ surfaceCapabilities()

WGPUSurfaceCapabilities ufo::compute::surfaceCapabilities ( WGPUSurface  surface,
WGPUAdapter  adapter 
)

Definition at line 223 of file compute.cpp.