Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Commits
f6adb9ca
Commit
f6adb9ca
authored
3 years ago
by
Mara Vogt
Browse files
Options
Downloads
Patches
Plain Diff
[
#92
] started with documentation
parent
485fde0b
No related branches found
No related tags found
1 merge request
!75
Resolve "RTX-Module"
Pipeline
#27352
passed
3 years ago
Stage: build
Stage: deploy
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
include/vkcv/BufferManager.hpp
+1
-3
1 addition, 3 deletions
include/vkcv/BufferManager.hpp
include/vkcv/Core.hpp
+12
-1
12 additions, 1 deletion
include/vkcv/Core.hpp
src/vkcv/BufferManager.cpp
+0
-6
0 additions, 6 deletions
src/vkcv/BufferManager.cpp
src/vkcv/Core.cpp
+0
-1
0 additions, 1 deletion
src/vkcv/Core.cpp
with
13 additions
and
11 deletions
include/vkcv/BufferManager.hpp
+
1
−
3
View file @
f6adb9ca
...
@@ -13,9 +13,7 @@ namespace vkcv
...
@@ -13,9 +13,7 @@ namespace vkcv
VERTEX
,
VERTEX
,
UNIFORM
,
UNIFORM
,
STORAGE
,
STORAGE
,
STAGING
,
STAGING
RT_ACCELERATION_VERTEX
,
RT_ACCELERATION_INDEX
};
};
enum
class
BufferMemoryType
{
enum
class
BufferMemoryType
{
...
...
This diff is collapsed.
Click to expand it.
include/vkcv/Core.hpp
+
12
−
1
View file @
f6adb9ca
...
@@ -341,7 +341,18 @@ namespace vkcv
...
@@ -341,7 +341,18 @@ namespace vkcv
const
WindowHandle
&
windowHandle
);
const
WindowHandle
&
windowHandle
);
/**
* Prepares RTXPipeline for Raygeneration by recording the binding Table to the Commandstream.
* Currently only supports closestHit, rayGen and miss shaderstages.
* @param cmdStreamHandle The command stream handle which receives relevant commands for drawing.
* @param rtxPipeline The raytracing pipeline from the RTXModule.
* @param rtxPipelineLayout The raytracing pipeline layout from the RTXModule.
* @param shaderBindingTable The shader binding table from the RTXModule.
* @param shaderGroupBaseAlignment The shader group base alignment from the RTXModule.
* @param descriptorSetUsages The descriptor set usages.
* @param pushConstants The push constants.
* @param windowHandle The window handle defining in which window to render.
*/
void
recordRayGenerationToCmdStream
(
void
recordRayGenerationToCmdStream
(
CommandStreamHandle
cmdStreamHandle
,
CommandStreamHandle
cmdStreamHandle
,
vk
::
Pipeline
rtxPipeline
,
vk
::
Pipeline
rtxPipeline
,
...
...
This diff is collapsed.
Click to expand it.
src/vkcv/BufferManager.cpp
+
0
−
6
View file @
f6adb9ca
...
@@ -48,12 +48,6 @@ namespace vkcv {
...
@@ -48,12 +48,6 @@ namespace vkcv {
case
BufferType
::
INDEX
:
case
BufferType
::
INDEX
:
usageFlags
=
vk
::
BufferUsageFlagBits
::
eIndexBuffer
;
usageFlags
=
vk
::
BufferUsageFlagBits
::
eIndexBuffer
;
break
;
break
;
case
BufferType
::
RT_ACCELERATION_VERTEX
:
usageFlags
=
vk
::
BufferUsageFlagBits
::
eVertexBuffer
|
vk
::
BufferUsageFlagBits
::
eAccelerationStructureStorageKHR
|
vk
::
BufferUsageFlagBits
::
eShaderDeviceAddressKHR
|
vk
::
BufferUsageFlagBits
::
eStorageBuffer
;
break
;
case
BufferType
::
RT_ACCELERATION_INDEX
:
usageFlags
=
vk
::
BufferUsageFlagBits
::
eIndexBuffer
|
vk
::
BufferUsageFlagBits
::
eAccelerationStructureStorageKHR
|
vk
::
BufferUsageFlagBits
::
eShaderDeviceAddressKHR
|
vk
::
BufferUsageFlagBits
::
eStorageBuffer
;
break
;
default:
default:
vkcv_log
(
LogLevel
::
WARNING
,
"Unknown buffer type"
);
vkcv_log
(
LogLevel
::
WARNING
,
"Unknown buffer type"
);
break
;
break
;
...
...
This diff is collapsed.
Click to expand it.
src/vkcv/Core.cpp
+
0
−
1
View file @
f6adb9ca
...
@@ -459,7 +459,6 @@ namespace vkcv
...
@@ -459,7 +459,6 @@ namespace vkcv
rchitRegion
.
setSize
(
shaderBindingTableSize
);
rchitRegion
.
setSize
(
shaderBindingTableSize
);
vk
::
StridedDeviceAddressRegionKHR
rcallRegion
=
{};
vk
::
StridedDeviceAddressRegionKHR
rcallRegion
=
{};
cmdBuffer
.
traceRaysKHR
(
&
rgenRegion
,
&
rmissRegion
,
&
rchitRegion
,
&
rcallRegion
,
cmdBuffer
.
traceRaysKHR
(
&
rgenRegion
,
&
rmissRegion
,
&
rchitRegion
,
&
rcallRegion
,
getWindow
(
windowHandle
).
getWidth
(),
getWindow
(
windowHandle
).
getHeight
(),
1
,
m_rtxDispatcher
);
getWindow
(
windowHandle
).
getWidth
(),
getWindow
(
windowHandle
).
getHeight
(),
1
,
m_rtxDispatcher
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment