surface: add initial VkSurface wrapper type
This commit is contained in:
parent
c5707ffc27
commit
0371fb1fd2
@ -82,6 +82,8 @@ list (APPEND sources
|
|||||||
semaphore.hpp
|
semaphore.hpp
|
||||||
shader_module.cpp
|
shader_module.cpp
|
||||||
shader_module.hpp
|
shader_module.hpp
|
||||||
|
surface.cpp
|
||||||
|
surface.hpp
|
||||||
traits.hpp
|
traits.hpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
4
fwd.hpp
4
fwd.hpp
@ -45,6 +45,7 @@ namespace cruft::vk {
|
|||||||
struct device_memory;
|
struct device_memory;
|
||||||
struct buffer;
|
struct buffer;
|
||||||
struct buffer_view;
|
struct buffer_view;
|
||||||
|
struct surface;
|
||||||
|
|
||||||
class error;
|
class error;
|
||||||
template <VkResult> class error_code;
|
template <VkResult> class error_code;
|
||||||
@ -59,7 +60,8 @@ namespace cruft::vk {
|
|||||||
|
|
||||||
#define VK_OWNED_TYPE_MAP(FUNC) \
|
#define VK_OWNED_TYPE_MAP(FUNC) \
|
||||||
MAP(FUNC, \
|
MAP(FUNC, \
|
||||||
queue)
|
queue, \
|
||||||
|
surface)
|
||||||
|
|
||||||
#define VK_TYPE_MAP(FUNC) \
|
#define VK_TYPE_MAP(FUNC) \
|
||||||
MAP(FUNC,instance) \
|
MAP(FUNC,instance) \
|
||||||
|
23
surface.cpp
Normal file
23
surface.cpp
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*
|
||||||
|
* Copyright:
|
||||||
|
* 2017, Danny Robson <danny@nerdcruft.net>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "./surface.hpp"
|
||||||
|
|
||||||
|
#include "./instance.hpp"
|
||||||
|
|
||||||
|
using cruft::vk::surface;
|
||||||
|
|
32
surface.hpp
Normal file
32
surface.hpp
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
/*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*
|
||||||
|
* Copyright:
|
||||||
|
* 2017, Danny Robson <danny@nerdcruft.net>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef CRUFT_VK_SURFACE_HPP
|
||||||
|
#define CRUFT_VK_SURFACE_HPP
|
||||||
|
|
||||||
|
#include "./vk.hpp"
|
||||||
|
#include "./instance.hpp"
|
||||||
|
#include "./object.hpp"
|
||||||
|
|
||||||
|
|
||||||
|
namespace cruft::vk {
|
||||||
|
struct surface : public owned<surface,instance> {
|
||||||
|
using owned::owned;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user