ShaderLayout Class — pytorch Architecture
Architecture documentation for the ShaderLayout class in Shader.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/vulkan/api/Shader.h lines 20–47
class ShaderLayout final {
public:
using Signature = std::vector<VkDescriptorType>;
explicit ShaderLayout(VkDevice, const Signature&);
ShaderLayout(const ShaderLayout&) = delete;
ShaderLayout& operator=(const ShaderLayout&) = delete;
ShaderLayout(ShaderLayout&&) noexcept;
ShaderLayout& operator=(ShaderLayout&&) = delete;
~ShaderLayout();
private:
VkDevice device_;
VkDescriptorSetLayout handle_;
public:
VkDescriptorSetLayout handle() const {
return handle_;
}
// We need to define a custom swap function since this class
// does not allow for move assignment. The swap function will
// be used in the hash map.
friend void swap(ShaderLayout& lhs, ShaderLayout& rhs) noexcept;
};
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free