Skip to content
Snippets Groups Projects
Commit 6103cdcd authored by Vanessa Karolek's avatar Vanessa Karolek
Browse files

[#92][Doc] add docu, remove duplicated feature line

parent 2d7c1f5e
Branches
Tags
1 merge request!75Resolve "RTX-Module"
......@@ -9,19 +9,19 @@ namespace vkcv::rtx {
class RTXModule {
private:
std::vector<const char*> m_instanceExtensions;
std::vector<const char*> m_deviceExtensions;
vkcv::Features m_features;
std::vector<const char*> m_instanceExtensions; // the instance extensions needed for using RTX
std::vector<const char*> m_deviceExtensions; // the device extensions needed for using RTX
vkcv::Features m_features; // the features needed to be enabled for using RTX
public:
/**
* @brief TODO
* @brief Default #RTXModule constructor.
*/
RTXModule();
/**
* @brief TODO
* @brief Default #RTXModule destructor.
*/
~RTXModule() {};
......@@ -38,16 +38,16 @@ namespace vkcv::rtx {
std::vector<const char*> getDeviceExtensions();
/**
* @brief TODO
* @return
* @brief Returns the raytracing features.
* @return The raytracing features.
*/
vkcv::Features getFeatures();
/**
* @brief TODO
* @param core
* @param vertices
* @param indices
* @brief Initializes the RTXModule with scene data.
* @param core The reference to the #Core.
* @param vertices The scene vertex data of type uint8_t.
* @param indices The scene index data of type uint8_t.
*/
void init(Core* core, std::vector<uint8_t> &vertices, std::vector<uint8_t> &indices);
};
......
......@@ -78,7 +78,6 @@ namespace vkcv::rtx {
features.setShaderOutputViewportIndex(true);
features.setShaderOutputLayer(true);
features.setSubgroupBroadcastDynamicId(true);
features.setBufferDeviceAddress(true);
});
m_features.requireFeature<vk::PhysicalDeviceVulkan11Features>(
[](vk::PhysicalDeviceVulkan11Features &features) {
......@@ -114,11 +113,9 @@ namespace vkcv::rtx {
}
void RTXModule::init(Core* core, std::vector<uint8_t> &vertices, std::vector<uint8_t> &indices) {
// build acceleration structures BLAS then TLAS --> see ASManager
ASManager asManager(core);
asManager.buildBLAS(vertices, indices);
}
std::vector<const char*> RTXModule::getInstanceExtensions() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment