Blender V5.3
sequencer::scope::ScopeRaster Struct Reference

#include <gpu_shader_sequencer_scope.bsl.hh>

Public Member Functions

void put_pixel (int x, int y, float4 col)
float srgb_to_linear (float c) const
float scope_to_linear (float c) const
float linear_to_extended_srgb (float c) const
float3 scope_to_extended_srgb (float3 color) const

Public Attributes

float4x4 ModelViewProjectionMatrix
float3 scope_luma_coeffs
float scope_point_size
float inv_render_scale
bool img_premultiplied
bool scope_is_hdr
float3x3 scope_gamut_to_rec709
float3x3 scope_yuv_matrix
int image_width
int image_height
int scope_mode
int view_width
int view_height
sampler2D image
SeqScopeRasterData(& raster_buf )[]

Detailed Description

Definition at line 21 of file gpu_shader_sequencer_scope.bsl.hh.

Member Function Documentation

◆ linear_to_extended_srgb()

float sequencer::scope::ScopeRaster::linear_to_extended_srgb ( float c) const
inline

Definition at line 79 of file gpu_shader_sequencer_scope.bsl.hh.

References abs, pow, and sign().

Referenced by scope_to_extended_srgb().

◆ put_pixel()

void sequencer::scope::ScopeRaster::put_pixel ( int x,
int y,
float4 col )
inline

Definition at line 41 of file gpu_shader_sequencer_scope.bsl.hh.

References atomicAdd(), index, raster_buf, view_width, x, and y.

◆ scope_to_extended_srgb()

float3 sequencer::scope::ScopeRaster::scope_to_extended_srgb ( float3 color) const
inline

◆ scope_to_linear()

float sequencer::scope::ScopeRaster::scope_to_linear ( float c) const
inline

Definition at line 62 of file gpu_shader_sequencer_scope.bsl.hh.

References exp, scope_is_hdr, and srgb_to_linear().

Referenced by scope_to_extended_srgb().

◆ srgb_to_linear()

float sequencer::scope::ScopeRaster::srgb_to_linear ( float c) const
inline

Definition at line 55 of file gpu_shader_sequencer_scope.bsl.hh.

References pow.

Referenced by scope_to_linear().

Member Data Documentation

◆ image

sampler2D sequencer::scope::ScopeRaster::image

Definition at line 37 of file gpu_shader_sequencer_scope.bsl.hh.

◆ image_height

int sequencer::scope::ScopeRaster::image_height

Definition at line 32 of file gpu_shader_sequencer_scope.bsl.hh.

◆ image_width

int sequencer::scope::ScopeRaster::image_width

Definition at line 31 of file gpu_shader_sequencer_scope.bsl.hh.

◆ img_premultiplied

bool sequencer::scope::ScopeRaster::img_premultiplied

Definition at line 27 of file gpu_shader_sequencer_scope.bsl.hh.

◆ inv_render_scale

float sequencer::scope::ScopeRaster::inv_render_scale

Definition at line 26 of file gpu_shader_sequencer_scope.bsl.hh.

◆ ModelViewProjectionMatrix

float4x4 sequencer::scope::ScopeRaster::ModelViewProjectionMatrix

Definition at line 22 of file gpu_shader_sequencer_scope.bsl.hh.

◆ raster_buf

SeqScopeRasterData(& sequencer::scope::ScopeRaster::raster_buf)[]

Definition at line 39 of file gpu_shader_sequencer_scope.bsl.hh.

Referenced by put_pixel().

◆ scope_gamut_to_rec709

float3x3 sequencer::scope::ScopeRaster::scope_gamut_to_rec709

Definition at line 29 of file gpu_shader_sequencer_scope.bsl.hh.

Referenced by scope_to_extended_srgb().

◆ scope_is_hdr

bool sequencer::scope::ScopeRaster::scope_is_hdr

Definition at line 28 of file gpu_shader_sequencer_scope.bsl.hh.

Referenced by scope_to_linear().

◆ scope_luma_coeffs

float3 sequencer::scope::ScopeRaster::scope_luma_coeffs

Definition at line 24 of file gpu_shader_sequencer_scope.bsl.hh.

◆ scope_mode

int sequencer::scope::ScopeRaster::scope_mode

Definition at line 33 of file gpu_shader_sequencer_scope.bsl.hh.

◆ scope_point_size

float sequencer::scope::ScopeRaster::scope_point_size

Definition at line 25 of file gpu_shader_sequencer_scope.bsl.hh.

◆ scope_yuv_matrix

float3x3 sequencer::scope::ScopeRaster::scope_yuv_matrix

Definition at line 30 of file gpu_shader_sequencer_scope.bsl.hh.

◆ view_height

int sequencer::scope::ScopeRaster::view_height

Definition at line 35 of file gpu_shader_sequencer_scope.bsl.hh.

◆ view_width

int sequencer::scope::ScopeRaster::view_width

Definition at line 34 of file gpu_shader_sequencer_scope.bsl.hh.

Referenced by put_pixel().


The documentation for this struct was generated from the following file: