diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-04-30 16:20:43 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-04-30 16:20:43 +0000 |
| commit | c13650e2a28314bb84d48d6b66efa19c14814f5e (patch) | |
| tree | 818319f740ee86133939210d51277700a27304a4 /TextureLoader/interface | |
| parent | Implemented loading textures from KTX (diff) | |
| download | DiligentTools-c13650e2a28314bb84d48d6b66efa19c14814f5e.tar.gz DiligentTools-c13650e2a28314bb84d48d6b66efa19c14814f5e.zip | |
Updated TextureLoadInfo ctor
Diffstat (limited to 'TextureLoader/interface')
| -rw-r--r-- | TextureLoader/interface/TextureLoader.h | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/TextureLoader/interface/TextureLoader.h b/TextureLoader/interface/TextureLoader.h index 4de89fb..499e741 100644 --- a/TextureLoader/interface/TextureLoader.h +++ b/TextureLoader/interface/TextureLoader.h @@ -57,16 +57,25 @@ namespace Diligent /// Texture format TEXTURE_FORMAT Format; - TextureLoadInfo() : - Name(""), - Usage( USAGE_STATIC ), - BindFlags( BIND_SHADER_RESOURCE ), - MipLevels(0), - CPUAccessFlags(CPU_ACCESS_NONE), - IsSRGB(false), - GenerateMips(true), - Format(TEX_FORMAT_UNKNOWN) + explicit TextureLoadInfo(const Char* _Name, + USAGE _Usage = USAGE_STATIC, + BIND_FLAGS _BindFlags = BIND_SHADER_RESOURCE, + Uint32 _MipLevels = 0, + CPU_ACCESS_FLAGS _CPUAccessFlags = CPU_ACCESS_NONE, + Bool _IsSRGB = False, + Bool _GenerateMips = True, + TEXTURE_FORMAT _Format = TEX_FORMAT_UNKNOWN) : + Name (_Name), + Usage (_Usage), + BindFlags (_BindFlags), + MipLevels (_MipLevels), + CPUAccessFlags (_CPUAccessFlags), + IsSRGB (_IsSRGB), + GenerateMips (_GenerateMips), + Format (_Format) {} + + TextureLoadInfo(){}; }; /// Creates a texture from 2D image |
