3 #include <Utils\DebugUtils.h> 21 ID3D12Resource* normalTexture =
nullptr,
22 ID3D12Resource* heightTexture =
nullptr)
23 : mDiffuseTexture(diffuseTexture)
24 , mNormalTexture(normalTexture)
25 , mHeightTexture(heightTexture)
28 ID3D12Resource& GetDiffuseTexture()
const noexcept
30 BRE_ASSERT(mDiffuseTexture !=
nullptr);
31 return *mDiffuseTexture;
34 void SetDiffuseTexture(ID3D12Resource* texture) noexcept
36 BRE_ASSERT(texture !=
nullptr);
37 mDiffuseTexture = texture;
40 ID3D12Resource& GetNormalTexture()
const noexcept
42 BRE_ASSERT(mNormalTexture !=
nullptr);
43 return *mNormalTexture;
46 void SetNormalTexture(ID3D12Resource* texture) noexcept
48 BRE_ASSERT(texture !=
nullptr);
49 mNormalTexture = texture;
52 ID3D12Resource& GetHeightTexture()
const noexcept
54 BRE_ASSERT(mHeightTexture !=
nullptr);
55 return *mHeightTexture;
58 void SetHeightTexture(ID3D12Resource* texture) noexcept
60 BRE_ASSERT(texture !=
nullptr);
61 mHeightTexture = texture;
64 TechniqueType GetType()
const noexcept;
67 ID3D12Resource* mDiffuseTexture{
nullptr };
68 ID3D12Resource* mNormalTexture{
nullptr };
69 ID3D12Resource* mHeightTexture{
nullptr };
Definition: MaterialTechnique.h:8