Debugging with simpler shader
This commit is contained in:
parent
8f6078c422
commit
181efc954b
4 changed files with 7 additions and 2 deletions
|
|
@ -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.
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
#include "Tensor.hpp"
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue