wisdom
Loading...
Searching...
No Matches
wis::ComponentMapping Struct Reference

Detailed Description

Component mapping for wis::ShaderResourceDesc.

};
ComponentSwizzle
Component swizzle for texture sampling.
Definition api.hpp:1216
@ Alpha
Use the alpha component for sampling.
@ Blue
Use the blue component for sampling.
@ Green
Use the green component for sampling.
@ Red
Use the red component for sampling.
Component mapping for wis::ShaderResourceDesc.
Definition api.hpp:2010

Definition at line 2010 of file api.hpp.

#include <api.hpp>

Public Attributes

wis::ComponentSwizzle r = wis::ComponentSwizzle::Red
 Component mapping for Red channel. Default is wis::ComponentSwizzle::Red.
 
wis::ComponentSwizzle g = wis::ComponentSwizzle::Green
 Component mapping for Green channel. Default is wis::ComponentSwizzle::Green.
 
wis::ComponentSwizzle b = wis::ComponentSwizzle::Blue
 Component mapping for Blue channel. Default is wis::ComponentSwizzle::Blue.
 
wis::ComponentSwizzle a = wis::ComponentSwizzle::Alpha
 Component mapping for Alpha channel. Default is wis::ComponentSwizzle::Alpha.
 

Data Members

◆ a

Component mapping for Alpha channel. Default is wis::ComponentSwizzle::Alpha.

Definition at line 2014 of file api.hpp.

◆ b

Component mapping for Blue channel. Default is wis::ComponentSwizzle::Blue.

Definition at line 2013 of file api.hpp.

◆ g

Component mapping for Green channel. Default is wis::ComponentSwizzle::Green.

Definition at line 2012 of file api.hpp.

◆ r

Component mapping for Red channel. Default is wis::ComponentSwizzle::Red.

Definition at line 2011 of file api.hpp.


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