LLGL 0.05 Beta
Loading...
Searching...
No Matches
Utility.h File Reference

Namespaces

namespace  LLGL

Functions

LLGL_EXPORT TextureDescriptor LLGL::Texture1DDesc (Format format, std::uint32_t width, long bindFlags=(BindFlags::ColorAttachment|BindFlags::Sampled))
 Returns a TextureDescriptor structure with the TextureType::Texture1D type.
LLGL_EXPORT TextureDescriptor LLGL::Texture2DDesc (Format format, std::uint32_t width, std::uint32_t height, long bindFlags=(BindFlags::ColorAttachment|BindFlags::Sampled))
 Returns a TextureDescriptor structure with the TextureType::Texture2D type.
LLGL_EXPORT TextureDescriptor LLGL::Texture3DDesc (Format format, std::uint32_t width, std::uint32_t height, std::uint32_t depth, long bindFlags=(BindFlags::ColorAttachment|BindFlags::Sampled))
 Returns a TextureDescriptor structure with the TextureType::Texture3D type.
LLGL_EXPORT TextureDescriptor LLGL::TextureCubeDesc (Format format, std::uint32_t width, std::uint32_t height, long bindFlags=(BindFlags::ColorAttachment|BindFlags::Sampled))
 Returns a TextureDescriptor structure with the TextureType::TextureCube type.
LLGL_EXPORT TextureDescriptor LLGL::Texture1DArrayDesc (Format format, std::uint32_t width, std::uint32_t arrayLayers, long bindFlags=(BindFlags::ColorAttachment|BindFlags::Sampled))
 Returns a TextureDescriptor structure with the TextureType::Texture1DArray type.
LLGL_EXPORT TextureDescriptor LLGL::Texture2DArrayDesc (Format format, std::uint32_t width, std::uint32_t height, std::uint32_t arrayLayers, long bindFlags=(BindFlags::ColorAttachment|BindFlags::Sampled))
 Returns a TextureDescriptor structure with the TextureType::Texture2DArray type.
LLGL_EXPORT TextureDescriptor LLGL::TextureCubeArrayDesc (Format format, std::uint32_t width, std::uint32_t height, std::uint32_t arrayLayers, long bindFlags=(BindFlags::ColorAttachment|BindFlags::Sampled))
 Returns a TextureDescriptor structure with the TextureType::TextureCubeArray type.
LLGL_EXPORT TextureDescriptor LLGL::Texture2DMSDesc (Format format, std::uint32_t width, std::uint32_t height, std::uint32_t samples, long bindFlags=(BindFlags::ColorAttachment|BindFlags::Sampled))
 Returns a TextureDescriptor structure with the TextureType::Texture2DMS type.
LLGL_EXPORT TextureDescriptor LLGL::Texture2DMSArrayDesc (Format format, std::uint32_t width, std::uint32_t height, std::uint32_t arrayLayers, std::uint32_t samples, long bindFlags=(BindFlags::ColorAttachment|BindFlags::Sampled))
 Returns a TextureDescriptor structure with the TextureType::Texture2DMSArray type.
LLGL_EXPORT BufferDescriptor LLGL::VertexBufferDesc (std::uint64_t size, std::uint32_t stride=0, long cpuAccessFlags=0)
 Returns a BufferDescriptor structure for a vertex buffer.
BufferDescriptor LLGL::VertexBufferDesc (std::uint64_t size, const VertexFormat &vertexFormat, long cpuAccessFlags=0)
LLGL_EXPORT BufferDescriptor LLGL::IndexBufferDesc (std::uint64_t size, const Format format, long cpuAccessFlags=0)
 Returns a BufferDescriptor structure for an index buffer.
LLGL_EXPORT BufferDescriptor LLGL::ConstantBufferDesc (std::uint64_t size, long cpuAccessFlags=0)
 Returns a BufferDescriptor structure for a constant buffer.
LLGL_EXPORT BufferDescriptor LLGL::StorageBufferDesc (std::uint64_t size, const StorageBufferType storageType, std::uint32_t stride, long cpuAccessFlags=CPUAccessFlags::ReadWrite)
 Returns a BufferDescriptor structure for a storage buffer.
LLGL_EXPORT ShaderDescriptor LLGL::ShaderDescFromFile (const ShaderType type, const char *filename, const char *entryPoint=nullptr, const char *profile=nullptr, long flags=0)
 Returns a ShaderDescriptor structure.
LLGL_EXPORT PipelineLayoutDescriptor LLGL::PipelineLayoutDesc (const ShaderReflection &reflection)
 Converts the specified shader reflection descriptor into a pipeline layout descriptor.
LLGL_EXPORT RenderPassDescriptor LLGL::RenderPassDesc (const RenderTargetDescriptor &renderTargetDesc)
 Converts the specified render target descriptor into a render pass descriptor with default settings.