one more texture to the GPU
This commit is contained in:
parent
5cf68c5219
commit
e7a7133e9f
1034 changed files with 324 additions and 4194331 deletions
|
|
@ -49,6 +49,7 @@ public:
|
|||
void updateDescriptorSet();
|
||||
void createUniformBuffer();
|
||||
void createTextureImages(const VkCommandBuffer& cmdBuf, tinygltf::Model& gltfModel);
|
||||
void createPointsetTexture(const VkCommandBuffer& cmdBuf);
|
||||
void updateUniformBuffer(const VkCommandBuffer& cmdBuf);
|
||||
void onResize(int /*w*/, int /*h*/) override;
|
||||
void destroyResources();
|
||||
|
|
@ -67,9 +68,9 @@ public:
|
|||
// Information pushed at each draw call
|
||||
PushConstantRaster m_pcRaster{
|
||||
{1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}, // Identity matrix
|
||||
{0.f, 100.f, 0.f}, // light position
|
||||
{0.f, 100.f, 0.f}, // light position
|
||||
0, // instance Id
|
||||
1000.f, // light intensity
|
||||
1000.f, // light intensity
|
||||
0, // light type
|
||||
0 // material id
|
||||
};
|
||||
|
|
@ -84,6 +85,7 @@ public:
|
|||
|
||||
nvvk::Buffer m_bGlobals; // Device-Host of the camera matrices
|
||||
std::vector<nvvk::Texture> m_textures; // vector of all textures of the scene
|
||||
nvvk::Texture m_pointset; // Texture for starting locations of primary rays
|
||||
|
||||
nvvk::ResourceAllocatorDma m_alloc; // Allocator for buffer, images, acceleration structures
|
||||
nvvk::DebugUtil m_debug; // Utility to name objects
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue