Kore
Loading...
Searching...
No Matches
sampler.h File Reference

Provides functions for sampler objects. More...

#include <kinc/backend/graphics5/sampler.h>
#include <kinc/graphics5/pipeline.h>

Go to the source code of this file.

Data Structures

struct  kinc_g5_sampler_options
struct  kinc_g5_sampler

Typedefs

typedef enum kinc_g5_texture_addressing kinc_g5_texture_addressing_t
typedef enum kinc_g5_texture_filter kinc_g5_texture_filter_t
typedef enum kinc_g5_mipmap_filter kinc_g5_mipmap_filter_t
typedef struct kinc_g5_sampler_options kinc_g5_sampler_options_t
typedef struct kinc_g5_sampler kinc_g5_sampler_t

Enumerations

enum  kinc_g5_texture_addressing { KINC_G5_TEXTURE_ADDRESSING_REPEAT , KINC_G5_TEXTURE_ADDRESSING_MIRROR , KINC_G5_TEXTURE_ADDRESSING_CLAMP , KINC_G5_TEXTURE_ADDRESSING_BORDER }
enum  kinc_g5_texture_filter { KINC_G5_TEXTURE_FILTER_POINT , KINC_G5_TEXTURE_FILTER_LINEAR , KINC_G5_TEXTURE_FILTER_ANISOTROPIC }
enum  kinc_g5_mipmap_filter { KINC_G5_MIPMAP_FILTER_NONE , KINC_G5_MIPMAP_FILTER_POINT , KINC_G5_MIPMAP_FILTER_LINEAR }

Functions

KINC_FUNC void kinc_g5_sampler_options_set_defaults (kinc_g5_sampler_options_t *options)
 Initializes the passed options-object with the default-options.
KINC_FUNC void kinc_g5_sampler_init (kinc_g5_sampler_t *sampler, const kinc_g5_sampler_options_t *options)
 Creates a sampler-object.
KINC_FUNC void kinc_g5_sampler_destroy (kinc_g5_sampler_t *sampler)
 Destroys a sampler-object.

Detailed Description

Provides functions for sampler objects.

Function Documentation

◆ kinc_g5_sampler_destroy()

KINC_FUNC void kinc_g5_sampler_destroy ( kinc_g5_sampler_t * sampler)

Destroys a sampler-object.

Parameters
samplerThe sampler-object to destroy

◆ kinc_g5_sampler_init()

KINC_FUNC void kinc_g5_sampler_init ( kinc_g5_sampler_t * sampler,
const kinc_g5_sampler_options_t * options )

Creates a sampler-object.

On platforms such as older OpenGL not all sampler attributes may be available.

Parameters
samplerPointer to the sampler object to initialize
descriptorOptions for the sampler

◆ kinc_g5_sampler_options_set_defaults()

KINC_FUNC void kinc_g5_sampler_options_set_defaults ( kinc_g5_sampler_options_t * options)

Initializes the passed options-object with the default-options.

Parameters
optionsThe options-object for which the default-options will be set