8 #include "samplerdeclaration.h"
9 #include "materialcommon.h"
12 #include <rtti/objectptr.h>
13 #include <utility/dllexport.h>
14 #include <nap/resource.h>
15 #include <nap/numeric.h>
22 class SamplerInstance;
27 constexpr
const char*
texture =
"Texture";
101 bool mEnableCompare =
false;
102 float mLodBias = 0.0f;
168 virtual int getNumElements()
const = 0;
192 mTextures(inSize) { }
223 mTextures(inSize) { }
@ IntOpaqueBlack
Integer opaque black, sampler default.
EDepthCompareMode
Definition: materialcommon.h:54
Definition: sampler.h:216
Sampler2DArray(int inSize)
Definition: sampler.h:191
Definition: sampler.h:159
@ Nearest
Nearest sampling.
@ FloatOpaqueBlack
Float opaque black.
std::vector< rtti::ObjectPtr< Texture2D > > mTextures
Property: 'Textures' textures to bind, must be of the same length as the shader declaration.
Definition: sampler.h:199
Definition: sampler.h:121
Definition: objectptr.h:154
@ Sixteen
Sixteen samples.
EAnisotropicSamples
Definition: sampler.h:56
constexpr const char * textures
Definition: sampler.h:28
@ IntTransparentBlack
Integer transparent black.
@ ClampToBorder
ClampToBorder.
EFilterMode
Definition: sampler.h:34
std::string mName
Property: 'Name' sampler shader name.
Definition: sampler.h:92
@ FloatOpaqueWhite
Float opaque white.
uint32_t uint32
Definition: numeric.h:20
Definition: sampler.h:185
virtual int getNumElements() const override
Definition: sampler.h:197
constexpr const char * texture
Definition: sampler.h:27
rtti::ObjectPtr< TextureCube > mTextureCube
Property: 'Texture' the texture to bind.
Definition: sampler.h:148
@ ClampToEdge
ClampToEdge.
virtual int getNumElements() const override
Definition: sampler.h:228
@ MirroredRepeat
MirroredRepeat.
std::vector< rtti::ObjectPtr< TextureCube > > mTextures
Property: 'Textures' textures to bind, must be of the same length as the shader declaration.
Definition: sampler.h:230
Definition: templateapp.h:17
Definition: resource.h:19
EBorderColor
Definition: sampler.h:68
@ Default
Pick system default, as defined by the render service configuration.
@ FloatTransparentBlack
Float transparent black.
@ IntOpaqueWhite
Integer opaque white.
Definition: sampler.h:143
EAddressMode
Definition: sampler.h:44
SamplerCubeArray(int inSize)
Definition: sampler.h:222