1 /*
2  * Copyright (c) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef API_RENDER_PROPERTY_PROPERTY_TYPES_H
17 #define API_RENDER_PROPERTY_PROPERTY_TYPES_H
18 
19 #include <cstdint>
20 
21 #include <core/property/property.h>
22 #include <render/device/pipeline_layout_desc.h>
23 #include <render/namespace.h>
24 
CORE_BEGIN_NAMESPACE()25 CORE_BEGIN_NAMESPACE()
26 namespace PropertyType {
27 inline constexpr CORE_NS::PropertyTypeDecl BINDABLE_BUFFER_WITH_HANDLE_REFERENCE_T =
28     PROPERTYTYPE(RENDER_NS::BindableBufferWithHandleReference);
29 inline constexpr CORE_NS::PropertyTypeDecl BINDABLE_IMAGE_WITH_HANDLE_REFERENCE_T =
30     PROPERTYTYPE(RENDER_NS::BindableImageWithHandleReference);
31 inline constexpr CORE_NS::PropertyTypeDecl BINDABLE_SAMPLER_WITH_HANDLE_REFERENCE_T =
32     PROPERTYTYPE(RENDER_NS::BindableSamplerWithHandleReference);
33 } // namespace PropertyType
34 
35 #ifdef DECLARE_PROPERTY_TYPE
36 DECLARE_PROPERTY_TYPE(RENDER_NS::BindableBufferWithHandleReference);
37 DECLARE_PROPERTY_TYPE(RENDER_NS::BindableImageWithHandleReference);
38 DECLARE_PROPERTY_TYPE(RENDER_NS::BindableSamplerWithHandleReference);
39 #endif
40 CORE_END_NAMESPACE()
41 #endif // API_RENDER_PROPERTY_PROPERTY_TYPES_H