7#include <Common/primitive_type.h>
49 std::shared_ptr<Image> m_input;
50 std::string m_swizzleSubscripts;
55 ClassType clazz(
"swizzled-image");
56 clazz.docName(
"Swizzled Image");
58 "An image whose primary purpose is to swizzle the output of a source image.");
59 clazz.baseOn<
Image>();
62 input.description(
"Reference to an input image that will be swizzled.");
63 clazz.addField(input);
67 "Subscripts for imge value swizzling. Supported subscript sets: "
68 "1. Cartesian coordinates \"xyzw\", "
69 "2. Colors \"rgba\", "
70 "3. Image/texture coordinates \"stpq\", "
71 "4. Hex-based subscripts (for wide vector types) \"0123456789ABCDEF\".");
73 clazz.addField(swizzleSubscripts);
Information about the world being cooked.
Definition CookingContext.h:24
An image whose primary purpose is to swizzle the output of a source image.
Definition SwizzledImage.h:19
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< SwizzledImage >)
Definition SwizzledImage.h:53
Image * getInput() const
Get the input image.
Definition SwizzledImage.cpp:345
std::shared_ptr< TTexture< real > > genRealTexture(const CookingContext &ctx)
Generates numeric texture of an alternative type.
Definition SwizzledImage.cpp:272
std::string_view getSwizzleSubscripts() const
Get the swizzle subscripts for the image.
Definition SwizzledImage.cpp:350
std::shared_ptr< TTexture< Image::ArrayType > > genNumericTexture(const CookingContext &ctx) override
Definition SwizzledImage.cpp:182
std::shared_ptr< TTexture< math::Vector4R > > genVector4RTexture(const CookingContext &ctx)
Definition SwizzledImage.cpp:319
std::shared_ptr< TTexture< math::Vector3R > > genVector3RTexture(const CookingContext &ctx)
Definition SwizzledImage.cpp:305
SwizzledImage & setInput(std::shared_ptr< Image > image)
Definition SwizzledImage.cpp:333
std::shared_ptr< TTexture< math::Spectrum > > genColorTexture(const CookingContext &ctx) override
Definition SwizzledImage.cpp:210
SwizzledImage & setSwizzleSubscripts(std::string swizzleSubscripts)
Definition SwizzledImage.cpp:339
std::shared_ptr< TTexture< math::Vector2R > > genVector2RTexture(const CookingContext &ctx)
Definition SwizzledImage.cpp:291
SDL binding type for a canonical SDL resource class.
Definition TSdlOwnerClass.h:23
A value that points to a SDL resource.
Definition TSdlReference.h:21
Definition TSdlString.h:14
TSdlValue & description(std::string descriptionStr)
Definition TSdlValue.ipp:95
TSdlValue & optional()
Definition TSdlValue.ipp:103
The root for all renderer implementations.
Definition EEngineProject.h:6