Blender V5.3
gpu_shader_cxx_image.hh File Reference

Go to the source code of this file.

Classes

struct  ImageBase< T, Dimensions, Array, Atomic >

Macros

#define RET

Image Types

#define IMG_TEMPLATE
#define imageLoadFast   imageLoad
#define imageStoreFast   imageStore
using image1D = ImageBase<float, 1>
using image2D = ImageBase<float, 2>
using image3D = ImageBase<float, 3>
using iimage1D = ImageBase<int, 1>
using iimage2D = ImageBase<int, 2>
using iimage3D = ImageBase<int, 3>
using uimage1D = ImageBase<uint, 1>
using uimage2D = ImageBase<uint, 2>
using uimage3D = ImageBase<uint, 3>
using image1DArray = ImageBase<float, 1, true>
using image2DArray = ImageBase<float, 2, true>
using iimage1DArray = ImageBase<int, 1, true>
using iimage2DArray = ImageBase<int, 2, true>
using uimage1DArray = ImageBase<uint, 1, true>
using uimage2DArray = ImageBase<uint, 2, true>
using iimage2DAtomic = ImageBase<int, 2, false, true>
using iimage3DAtomic = ImageBase<int, 3, false, true>
using uimage2DAtomic = ImageBase<uint, 2, false, true>
using uimage3DAtomic = ImageBase<uint, 3, false, true>
using iimage2DArrayAtomic = ImageBase<int, 2, true, true>
using uimage2DArrayAtomic = ImageBase<uint, 2, true, true>
IMG_TEMPLATE SizeVec imageSize (const T &) RET
IMG_TEMPLATE DataVec imageLoad (const T &, IntCoord) RET
IMG_TEMPLATE void imageStore (T &, IntCoord, DataVec)
IMG_TEMPLATE void imageFence (T &)
IMG_TEMPLATE void imageStore (const T &, IntCoord, DataVec)=delete
IMG_TEMPLATE void imageFence (const T &)=delete
IMG_TEMPLATE uint imageAtomicAdd (T &, IntCoord, uint) RET
IMG_TEMPLATE uint imageAtomicMin (T &, IntCoord, uint) RET
IMG_TEMPLATE uint imageAtomicMax (T &, IntCoord, uint) RET
IMG_TEMPLATE uint imageAtomicAnd (T &, IntCoord, uint) RET
IMG_TEMPLATE uint imageAtomicXor (T &, IntCoord, uint) RET
IMG_TEMPLATE uint imageAtomicOr (T &, IntCoord, uint) RET
IMG_TEMPLATE uint imageAtomicExchange (T &, IntCoord, uint) RET
IMG_TEMPLATE uint imageAtomicCompSwap (T &, IntCoord, uint, uint) RET
IMG_TEMPLATE int imageAtomicAdd (T &, IntCoord, int) RET
IMG_TEMPLATE int imageAtomicMin (T &, IntCoord, int) RET
IMG_TEMPLATE int imageAtomicMax (T &, IntCoord, int) RET
IMG_TEMPLATE int imageAtomicAnd (T &, IntCoord, int) RET
IMG_TEMPLATE int imageAtomicXor (T &, IntCoord, int) RET
IMG_TEMPLATE int imageAtomicOr (T &, IntCoord, int) RET
IMG_TEMPLATE int imageAtomicExchange (T &, IntCoord, int) RET
IMG_TEMPLATE int imageAtomicCompSwap (T &, IntCoord, int, int) RET
IMG_TEMPLATE uint imageAtomicAdd (const T &, IntCoord, uint)=delete
IMG_TEMPLATE uint imageAtomicMin (const T &, IntCoord, uint)=delete
IMG_TEMPLATE uint imageAtomicMax (const T &, IntCoord, uint)=delete
IMG_TEMPLATE uint imageAtomicAnd (const T &, IntCoord, uint)=delete
IMG_TEMPLATE uint imageAtomicXor (const T &, IntCoord, uint)=delete
IMG_TEMPLATE uint imageAtomicOr (const T &, IntCoord, uint)=delete
IMG_TEMPLATE uint imageAtomicExchange (const T &, IntCoord, uint)=delete
IMG_TEMPLATE uint imageAtomicCompSwap (const T &, IntCoord, uint, uint)=delete
IMG_TEMPLATE int imageAtomicAdd (const T &, IntCoord, int)=delete
IMG_TEMPLATE int imageAtomicMin (const T &, IntCoord, int)=delete
IMG_TEMPLATE int imageAtomicMax (const T &, IntCoord, int)=delete
IMG_TEMPLATE int imageAtomicAnd (const T &, IntCoord, int)=delete
IMG_TEMPLATE int imageAtomicXor (const T &, IntCoord, int)=delete
IMG_TEMPLATE int imageAtomicOr (const T &, IntCoord, int)=delete
IMG_TEMPLATE int imageAtomicExchange (const T &, IntCoord, int)=delete
IMG_TEMPLATE int imageAtomicCompSwap (const T &, IntCoord, int, int)=delete

Macro Definition Documentation

◆ imageLoadFast

◆ imageStoreFast

#define imageStoreFast   imageStore

Definition at line 48 of file gpu_shader_cxx_image.hh.

Referenced by eevee::raytracing::denoise::bilateral_main(), eevee::Cryptomatte::clear_samples(), eevee::dof::bokeh_lut::comp_main(), eevee::subsurface::convolve_main(), eevee::film::Film::copy_history(), eevee::AmendCtx::eval_directional(), eevee::motion_blur::gather::gather_comp(), eevee::raytracing::generate_rays(), eevee::volume::integration_main(), eevee::raytracing::denoise::DenoiseSpatial::invalid_pixel_write(), eevee::occlusion_pass(), eevee::shadow::page_clear_comp(), eevee::film::pass_convert(), eevee::film::Film::process_render_sample(), eevee::lightprobe::volume::ray_capture(), eevee::renderpass_clear_frag(), eevee::volume::scatter_main(), eevee::fast_gi::setup(), eevee::subsurface::setup_main(), eevee::raytracing::denoise::spatial_main(), eevee::CryptomatteOutput::store(), eevee::RenderPassOutput::store_color(), eevee::film::Film::store_color_ex(), eevee::film::Film::store_combined(), eevee::film::Film::store_data(), eevee::film::Film::store_denoising_depth(), eevee::film::Film::store_depth(), eevee::film::Film::store_distance(), eevee::Cryptomatte::store_film_sample(), eevee::cryptomatte::Resources::store_samples(), eevee::film::Film::store_value(), eevee::RenderPassOutput::store_value(), eevee::film::Film::store_weight(), eevee::raytracing::denoise::temporal_main(), eevee::raytracing::tile_classify(), eevee::shadow::tilemap_finalize_main(), eevee::raytrace::fallback::trace(), eevee::raytrace::planar::trace(), eevee::raytrace::screen::trace(), eevee::hiz::update_main(), eevee::lightprobe::volume::volume_offset(), eevee::SurfaceDeferred::write_closure_data(), eevee::SurfaceHybrid::write_closure_data(), eevee::SurfVolume::write_froxel(), eevee::SurfaceDeferred::write_header_data(), eevee::SurfaceHybrid::write_header_data(), eevee::SurfaceDeferred::write_normal_data(), and eevee::SurfaceHybrid::write_normal_data().

◆ IMG_TEMPLATE

◆ RET

#define RET
Value:
{ \
return {}; \
}

C++ stubs for shading language.

IMPORTANT: Please ask the module team if you need some feature that are not listed in this file.

Definition at line 16 of file gpu_shader_cxx_image.hh.

Typedef Documentation

◆ iimage1D

using iimage1D = ImageBase<int, 1>

Definition at line 89 of file gpu_shader_cxx_image.hh.

◆ iimage1DArray

using iimage1DArray = ImageBase<int, 1, true>

Definition at line 98 of file gpu_shader_cxx_image.hh.

◆ iimage2D

using iimage2D = ImageBase<int, 2>

Definition at line 90 of file gpu_shader_cxx_image.hh.

◆ iimage2DArray

using iimage2DArray = ImageBase<int, 2, true>

Definition at line 99 of file gpu_shader_cxx_image.hh.

◆ iimage2DArrayAtomic

using iimage2DArrayAtomic = ImageBase<int, 2, true, true>

Definition at line 108 of file gpu_shader_cxx_image.hh.

◆ iimage2DAtomic

using iimage2DAtomic = ImageBase<int, 2, false, true>

Definition at line 103 of file gpu_shader_cxx_image.hh.

◆ iimage3D

using iimage3D = ImageBase<int, 3>

Definition at line 91 of file gpu_shader_cxx_image.hh.

◆ iimage3DAtomic

using iimage3DAtomic = ImageBase<int, 3, false, true>

Definition at line 104 of file gpu_shader_cxx_image.hh.

◆ image1D

using image1D = ImageBase<float, 1>

Definition at line 86 of file gpu_shader_cxx_image.hh.

◆ image1DArray

using image1DArray = ImageBase<float, 1, true>

Definition at line 96 of file gpu_shader_cxx_image.hh.

◆ image2D

using image2D = ImageBase<float, 2>

Definition at line 87 of file gpu_shader_cxx_image.hh.

◆ image2DArray

using image2DArray = ImageBase<float, 2, true>

Definition at line 97 of file gpu_shader_cxx_image.hh.

◆ image3D

using image3D = ImageBase<float, 3>

Definition at line 88 of file gpu_shader_cxx_image.hh.

◆ uimage1D

using uimage1D = ImageBase<uint, 1>

Definition at line 92 of file gpu_shader_cxx_image.hh.

◆ uimage1DArray

using uimage1DArray = ImageBase<uint, 1, true>

Definition at line 100 of file gpu_shader_cxx_image.hh.

◆ uimage2D

using uimage2D = ImageBase<uint, 2>

Definition at line 93 of file gpu_shader_cxx_image.hh.

◆ uimage2DArray

using uimage2DArray = ImageBase<uint, 2, true>

Definition at line 101 of file gpu_shader_cxx_image.hh.

◆ uimage2DArrayAtomic

using uimage2DArrayAtomic = ImageBase<uint, 2, true, true>

Definition at line 109 of file gpu_shader_cxx_image.hh.

◆ uimage2DAtomic

using uimage2DAtomic = ImageBase<uint, 2, false, true>

Definition at line 105 of file gpu_shader_cxx_image.hh.

◆ uimage3D

using uimage3D = ImageBase<uint, 3>

Definition at line 94 of file gpu_shader_cxx_image.hh.

◆ uimage3DAtomic

using uimage3DAtomic = ImageBase<uint, 3, false, true>

Definition at line 106 of file gpu_shader_cxx_image.hh.

Function Documentation

◆ imageAtomicAdd() [1/4]

IMG_TEMPLATE int imageAtomicAdd ( const T & ,
IntCoord ,
int  )
delete

References imageAtomicAdd(), IMG_TEMPLATE, and T.

◆ imageAtomicAdd() [2/4]

IMG_TEMPLATE uint imageAtomicAdd ( const T & ,
IntCoord ,
uint  )
delete

References imageAtomicAdd(), IMG_TEMPLATE, and T.

◆ imageAtomicAdd() [3/4]

IMG_TEMPLATE int imageAtomicAdd ( T & ,
IntCoord ,
int  )

References imageAtomicAdd(), IMG_TEMPLATE, RET, and T.

◆ imageAtomicAdd() [4/4]

IMG_TEMPLATE uint imageAtomicAdd ( T & ,
IntCoord ,
uint  )

◆ imageAtomicAnd() [1/4]

IMG_TEMPLATE int imageAtomicAnd ( const T & ,
IntCoord ,
int  )
delete

References imageAtomicAnd(), IMG_TEMPLATE, and T.

◆ imageAtomicAnd() [2/4]

IMG_TEMPLATE uint imageAtomicAnd ( const T & ,
IntCoord ,
uint  )
delete

References imageAtomicAnd(), IMG_TEMPLATE, and T.

◆ imageAtomicAnd() [3/4]

IMG_TEMPLATE int imageAtomicAnd ( T & ,
IntCoord ,
int  )

References imageAtomicAnd(), IMG_TEMPLATE, RET, and T.

◆ imageAtomicAnd() [4/4]

IMG_TEMPLATE uint imageAtomicAnd ( T & ,
IntCoord ,
uint  )

◆ imageAtomicCompSwap() [1/4]

IMG_TEMPLATE int imageAtomicCompSwap ( const T & ,
IntCoord ,
int ,
int  )
delete

◆ imageAtomicCompSwap() [2/4]

IMG_TEMPLATE uint imageAtomicCompSwap ( const T & ,
IntCoord ,
uint ,
uint  )
delete

◆ imageAtomicCompSwap() [3/4]

IMG_TEMPLATE int imageAtomicCompSwap ( T & ,
IntCoord ,
int ,
int  )

◆ imageAtomicCompSwap() [4/4]

IMG_TEMPLATE uint imageAtomicCompSwap ( T & ,
IntCoord ,
uint ,
uint  )

◆ imageAtomicExchange() [1/4]

IMG_TEMPLATE int imageAtomicExchange ( const T & ,
IntCoord ,
int  )
delete

◆ imageAtomicExchange() [2/4]

IMG_TEMPLATE uint imageAtomicExchange ( const T & ,
IntCoord ,
uint  )
delete

◆ imageAtomicExchange() [3/4]

IMG_TEMPLATE int imageAtomicExchange ( T & ,
IntCoord ,
int  )

◆ imageAtomicExchange() [4/4]

◆ imageAtomicMax() [1/4]

IMG_TEMPLATE int imageAtomicMax ( const T & ,
IntCoord ,
int  )
delete

References imageAtomicMax(), IMG_TEMPLATE, and T.

◆ imageAtomicMax() [2/4]

IMG_TEMPLATE uint imageAtomicMax ( const T & ,
IntCoord ,
uint  )
delete

References imageAtomicMax(), IMG_TEMPLATE, and T.

◆ imageAtomicMax() [3/4]

IMG_TEMPLATE int imageAtomicMax ( T & ,
IntCoord ,
int  )

References imageAtomicMax(), IMG_TEMPLATE, RET, and T.

◆ imageAtomicMax() [4/4]

IMG_TEMPLATE uint imageAtomicMax ( T & ,
IntCoord ,
uint  )

◆ imageAtomicMin() [1/4]

IMG_TEMPLATE int imageAtomicMin ( const T & ,
IntCoord ,
int  )
delete

References imageAtomicMin(), IMG_TEMPLATE, and T.

◆ imageAtomicMin() [2/4]

IMG_TEMPLATE uint imageAtomicMin ( const T & ,
IntCoord ,
uint  )
delete

References imageAtomicMin(), IMG_TEMPLATE, and T.

◆ imageAtomicMin() [3/4]

IMG_TEMPLATE int imageAtomicMin ( T & ,
IntCoord ,
int  )

References imageAtomicMin(), IMG_TEMPLATE, RET, and T.

◆ imageAtomicMin() [4/4]

IMG_TEMPLATE uint imageAtomicMin ( T & ,
IntCoord ,
uint  )

◆ imageAtomicOr() [1/4]

IMG_TEMPLATE int imageAtomicOr ( const T & ,
IntCoord ,
int  )
delete

References imageAtomicOr(), IMG_TEMPLATE, and T.

◆ imageAtomicOr() [2/4]

IMG_TEMPLATE uint imageAtomicOr ( const T & ,
IntCoord ,
uint  )
delete

References imageAtomicOr(), IMG_TEMPLATE, and T.

◆ imageAtomicOr() [3/4]

IMG_TEMPLATE int imageAtomicOr ( T & ,
IntCoord ,
int  )

References imageAtomicOr(), IMG_TEMPLATE, RET, and T.

◆ imageAtomicOr() [4/4]

IMG_TEMPLATE uint imageAtomicOr ( T & ,
IntCoord ,
uint  )

◆ imageAtomicXor() [1/4]

IMG_TEMPLATE int imageAtomicXor ( const T & ,
IntCoord ,
int  )
delete

References imageAtomicXor(), IMG_TEMPLATE, and T.

◆ imageAtomicXor() [2/4]

IMG_TEMPLATE uint imageAtomicXor ( const T & ,
IntCoord ,
uint  )
delete

References imageAtomicXor(), IMG_TEMPLATE, and T.

◆ imageAtomicXor() [3/4]

IMG_TEMPLATE int imageAtomicXor ( T & ,
IntCoord ,
int  )

References imageAtomicXor(), IMG_TEMPLATE, RET, and T.

◆ imageAtomicXor() [4/4]

IMG_TEMPLATE uint imageAtomicXor ( T & ,
IntCoord ,
uint  )

◆ imageFence() [1/2]

IMG_TEMPLATE void imageFence ( const T & )
delete

References imageFence(), IMG_TEMPLATE, and T.

◆ imageFence() [2/2]

◆ imageLoad()

◆ imageSize()

◆ imageStore() [1/2]

IMG_TEMPLATE void imageStore ( const T & ,
IntCoord ,
DataVec  )
delete

References imageStore(), IMG_TEMPLATE, and T.

◆ imageStore() [2/2]