Debugging with simpler shader

This commit is contained in:
Alejandro Saucedo 2020-08-22 12:31:00 +01:00
parent 8f6078c422
commit 181efc954b
4 changed files with 7 additions and 2 deletions

View file

@ -19,7 +19,9 @@ void main()
{
uint index = gl_GlobalInvocationID.x;
valuesOutput[index] = valuesLhs[index] * valuesRhs[index];
//valuesOutput[index] = valuesLhs[index] * valuesRhs[index];
// FOR TESTING
valuesOutput[index] = index;
}

Binary file not shown.

View file

@ -1,4 +1,6 @@
#include <chrono>
#include <thread>
#include "Tensor.hpp"

View file

@ -136,10 +136,11 @@ Tensor::recordCopyFrom(std::shared_ptr<Tensor> copyFromTensor)
// TODO: Explore if this function should be here or expose buffer
vk::DescriptorBufferInfo Tensor::constructDescriptorBufferInfo() {
vk::DeviceSize bufferSize = this->memorySize();
return vk::DescriptorBufferInfo(
*this->mBuffer,
0, // offset
VK_WHOLE_SIZE
bufferSize
);
}