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
93f66c38
Commit
93f66c38
authored
3 years ago
by
Lars Hoerttrich
Browse files
Options
Downloads
Patches
Plain Diff
[
#22
] Added createBuffer()-template-function to core. Uses buffer instead of handle for now
parent
054ee07c
No related branches found
No related tags found
1 merge request
!18
Resolve "Resource Management"
Pipeline
#24794
failed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/vkcv/Core.hpp
+11
-2
11 additions, 2 deletions
include/vkcv/Core.hpp
with
11 additions
and
2 deletions
include/vkcv/Core.hpp
+
11
−
2
View file @
93f66c38
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
#include
<vulkan/vulkan.hpp>
#include
<vulkan/vulkan.hpp>
#include
"vkcv/Context.hpp"
#include
"vkcv/Context.hpp"
#include
"vkcv/Handles.hpp"
#include
"vkcv/Handles.hpp"
#include
"vkcv/Buffer.hpp"
namespace
vkcv
namespace
vkcv
{
{
// TODO:
// TODO:
class
Buffer
;
class
Renderpass
;
class
Renderpass
;
class
Pipeline
;
class
Pipeline
;
...
@@ -92,7 +92,16 @@ namespace vkcv
...
@@ -92,7 +92,16 @@ namespace vkcv
std
::
vector
<
const
char
*>
deviceExtensions
=
{});
std
::
vector
<
const
char
*>
deviceExtensions
=
{});
// TODO:
// TODO:
BufferHandle
createBuffer
(
const
Buffer
&
buf
);
/**
* Creates a #Buffer with data-type T and @p bufferType
* @param bufferType Type of Buffer created
* @param size Amount of Data of type T
* return Buffer-Object
*/
template
<
typename
T
>
Buffer
<
T
>
createBuffer
(
vkcv
::
BufferType
bufferType
,
size_t
size
)
{
return
Buffer
<
T
>
(
m_Context
.
getDevice
(),
m_Context
.
getPhysicalDevice
,
bufferType
,
size
);
};
PassHandle
createRenderPass
(
const
Renderpass
&
pass
)
;
PassHandle
createRenderPass
(
const
Renderpass
&
pass
)
;
PipelineHandle
createPipeline
(
const
Pipeline
&
pipeline
);
PipelineHandle
createPipeline
(
const
Pipeline
&
pipeline
);
...
...
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