Nebula
Loading...
Searching...
No Matches
image.cc File Reference
#include "coregraphics/config.h"
#include "io/ioserver.h"
#include "io/stream.h"
#include "image.h"
#include "stb_image.h"
#include "stb_image_write.h"
#include "coregraphics/stb/stb_image_write_16bit.h"

Namespaces

namespace  CoreGraphics
 Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.

Macros

#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
#define STB_IMAGE_WRITE_16_IMPLEMENTATION

Functions

ImageChannelPrimitive CoreGraphics::ToImagePrimitive (CoreGraphics::PixelFormat::Code code)
ImageId CoreGraphics::CreateImage (const ImageCreateInfoFile &info)
 create image from file path
ImageId CoreGraphics::CreateImage (const ImageCreateInfoData &info)
 create image from data buffer
ImageId CoreGraphics::CreateImage (const CoreGraphics::TextureId tex, CoreGraphics::PipelineStage stage)
 Create image from a texture and the pipeline stage it was last used with.
void CoreGraphics::DestroyImage (const ImageId id)
 destroy image
ImageDimensions CoreGraphics::ImageGetDimensions (const ImageId id)
 get image dimensions
const ubyteCoreGraphics::ImageGetBuffer (const ImageId id)
 Get pointer to buffer.
const SizeT CoreGraphics::ImageGetPixelStride (const ImageId id)
 Get pixel stride in bytes.
const SizeT CoreGraphics::ImageGetChannelStride (const ImageId id)
 Get channel stride in bytes.
float CoreGraphics::half_to_float (uint16_t h)
void CoreGraphics::ImageConvertPrimitive (const ImageId id, const ImageChannelPrimitive primitive, bool denormalize)
 Convert image primitive.
bool CoreGraphics::ImageSaveToFile (const ImageId id, const ImageContainer container, const IO::URI &path)
 Save image to file.
ImageChannelPrimitive CoreGraphics::ImageGetChannelPrimitive (const ImageId id)
 get channel primitive

Variables

CmdBufferPoolId CoreGraphics::cmdPool = CmdBufferPoolId::Invalid()
ImageAllocator CoreGraphics::imageAllocator

Macro Definition Documentation

◆ STB_IMAGE_IMPLEMENTATION

#define STB_IMAGE_IMPLEMENTATION

◆ STB_IMAGE_WRITE_16_IMPLEMENTATION

#define STB_IMAGE_WRITE_16_IMPLEMENTATION

◆ STB_IMAGE_WRITE_IMPLEMENTATION

#define STB_IMAGE_WRITE_IMPLEMENTATION