18#ifndef vtkSlangShaderManager_h
19#define vtkSlangShaderManager_h
22#include "vtkRenderingSlangModule.h"
33VTK_ABI_NAMESPACE_BEGIN
44 const std::string&
source,
const std::vector<std::string>& entryPoints = {});
46 using StringPairs = std::vector<std::pair<std::string, std::string>>;
49 const std::vector<std::string>& entryPoints,
const StringPairs& defines,
50 const std::vector<std::string>& modules,
const StringPairs& specializations,
51 const std::vector<std::string>& searchPaths = {},
const std::string& label = std::string());
69 std::vector<std::pair<std::string, std::vector<std::string>>>
Attributes;
155 const HostValue& value, std::vector<std::uint8_t>& bytes);
158 const Plan& plan,
const std::vector<std::string>& names);
173 std::unique_ptr<Internal> Pimpl;
a simple class to control print indentation
static std::vector< std::string > GetLibraryModules()
static vtkSlangShaderManager * New()
static std::string GetLibraryModuleSource(const std::string &name)
static bool IsSlangAvailable()
~vtkSlangShaderManager() override
const std::string & GetLastDiagnostics() const
VTK_WRAPEXCLUDE std::string CompileSourceToWGSL(const std::string &source, const std::vector< std::string > &entryPoints, const StringPairs &defines, const std::vector< std::string > &modules, const StringPairs &specializations, const std::vector< std::string > &searchPaths={}, const std::string &label=std::string())
VTK_WRAPEXCLUDE const std::vector< Binding > & GetLastBindings() const
static bool WriteLibraryModules(const std::string &directory)
static VTK_WRAPEXCLUDE std::vector< std::uint8_t > BlockBytes(const Plan &plan, size_t block)
std::vector< std::pair< std::string, std::string > > StringPairs
static VTK_WRAPEXCLUDE PackStatus Pack(const Plan &plan, size_t block, const std::string &field, const HostValue &value, std::vector< std::uint8_t > &bytes)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static VTK_WRAPEXCLUDE std::vector< std::string > Unmatched(const Plan &plan, const std::vector< std::string > &names)
static VTK_WRAPEXCLUDE std::string GetParameterSchema(const Plan &plan)
VTK_WRAPEXCLUDE Plan GetLastPlan(const std::function< bool(const Binding &)> &hostOwned) const
std::string CompileSourceToWGSL(const std::string &source, const std::vector< std::string > &entryPoints={})
void SetCacheDirectory(const std::string &directory)
ViewDimensionType ViewDimension
std::vector< UniformField > Fields
std::vector< UniformField > Fields
Binding::ViewDimensionType ViewDimension
std::vector< Block > Blocks
bool operator!=(const Plan &other) const
std::vector< Resource > Resources
std::shared_ptr< const Data > Native
VTKRENDERINGSLANG_EXPORT bool operator==(const Plan &other) const
std::vector< Binding > Unsupported
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)