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
e537a34e
Commit
e537a34e
authored
3 years ago
by
Alexander Gauggel
Browse files
Options
Downloads
Patches
Plain Diff
[
#106
] Switch motion vector visualisation sampler from linear to nearest
parent
a82d4018
No related branches found
No related tags found
1 merge request
!89
Resolve "Indirect Dispatch"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
projects/indirect_dispatch/src/App.cpp
+7
-1
7 additions, 1 deletion
projects/indirect_dispatch/src/App.cpp
projects/indirect_dispatch/src/App.hpp
+1
-0
1 addition, 0 deletions
projects/indirect_dispatch/src/App.hpp
with
8 additions
and
1 deletion
projects/indirect_dispatch/src/App.cpp
+
7
−
1
View file @
e537a34e
...
@@ -62,6 +62,12 @@ bool App::initialize() {
...
@@ -62,6 +62,12 @@ bool App::initialize() {
vkcv
::
SamplerMipmapMode
::
LINEAR
,
vkcv
::
SamplerMipmapMode
::
LINEAR
,
vkcv
::
SamplerAddressMode
::
CLAMP_TO_EDGE
);
vkcv
::
SamplerAddressMode
::
CLAMP_TO_EDGE
);
m_nearestSampler
=
m_core
.
createSampler
(
vkcv
::
SamplerFilterType
::
NEAREST
,
vkcv
::
SamplerFilterType
::
NEAREST
,
vkcv
::
SamplerMipmapMode
::
NEAREST
,
vkcv
::
SamplerAddressMode
::
CLAMP_TO_EDGE
);
m_renderTargets
=
createRenderTargets
(
m_core
,
m_windowWidth
,
m_windowHeight
);
m_renderTargets
=
createRenderTargets
(
m_core
,
m_windowWidth
,
m_windowHeight
);
const
int
cameraIndex
=
m_cameraManager
.
addCamera
(
vkcv
::
camera
::
ControllerType
::
PILOT
);
const
int
cameraIndex
=
m_cameraManager
.
addCamera
(
vkcv
::
camera
::
ControllerType
::
PILOT
);
...
@@ -331,7 +337,7 @@ void App::run() {
...
@@ -331,7 +337,7 @@ void App::run() {
motionVectorVisualisationDescriptorWrites
.
sampledImageWrites
=
{
motionVectorVisualisationDescriptorWrites
.
sampledImageWrites
=
{
vkcv
::
SampledImageDescriptorWrite
(
0
,
visualisationInput
)
};
vkcv
::
SampledImageDescriptorWrite
(
0
,
visualisationInput
)
};
motionVectorVisualisationDescriptorWrites
.
samplerWrites
=
{
motionVectorVisualisationDescriptorWrites
.
samplerWrites
=
{
vkcv
::
SamplerDescriptorWrite
(
1
,
m_
li
nearSampler
)
};
vkcv
::
SamplerDescriptorWrite
(
1
,
m_near
est
Sampler
)
};
motionVectorVisualisationDescriptorWrites
.
storageImageWrites
=
{
motionVectorVisualisationDescriptorWrites
.
storageImageWrites
=
{
vkcv
::
StorageImageDescriptorWrite
(
2
,
m_renderTargets
.
motionBlurOutput
)
};
vkcv
::
StorageImageDescriptorWrite
(
2
,
m_renderTargets
.
motionBlurOutput
)
};
...
...
This diff is collapsed.
Click to expand it.
projects/indirect_dispatch/src/App.hpp
+
1
−
0
View file @
e537a34e
...
@@ -34,4 +34,5 @@ private:
...
@@ -34,4 +34,5 @@ private:
RenderTargets
m_renderTargets
;
RenderTargets
m_renderTargets
;
vkcv
::
SamplerHandle
m_linearSampler
;
vkcv
::
SamplerHandle
m_linearSampler
;
vkcv
::
SamplerHandle
m_nearestSampler
;
};
};
\ No newline at end of file
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