yum-mirror/VkFFT

git clone https://git.yummers.dev/yum-mirror/VkFFT

Tolmachev DmitriiMetal support in VkFFTba7001c

develop
6.8 KiB165 linesraw
1//-------------------------------------------------------------------------------------------------------------------------------------------------------------
2//
3// Metal/MTLBlitPass.hpp
4//
5// Copyright 2020-2021 Apple Inc.
6//
7// Licensed under the Apache License, Version 2.0 (the "License");
8// you may not use this file except in compliance with the License.
9// You may obtain a copy of the License at
10//
11//     http://www.apache.org/licenses/LICENSE-2.0
12//
13// Unless required by applicable law or agreed to in writing, software
14// distributed under the License is distributed on an "AS IS" BASIS,
15// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16// See the License for the specific language governing permissions and
17// limitations under the License.
18//
19//-------------------------------------------------------------------------------------------------------------------------------------------------------------
20
21#pragma once
22
23#include "MTLDefines.hpp"
24#include "MTLHeaderBridge.hpp"
25#include "MTLPrivate.hpp"
26
27#include <Foundation/Foundation.hpp>
28
29namespace MTL
30{
31class BlitPassSampleBufferAttachmentDescriptor : public NS::Copying<BlitPassSampleBufferAttachmentDescriptor>
32{
33public:
34    static class BlitPassSampleBufferAttachmentDescriptor* alloc();
35
36    class BlitPassSampleBufferAttachmentDescriptor*        init();
37
38    class CounterSampleBuffer*                             sampleBuffer() const;
39    void                                                   setSampleBuffer(const class CounterSampleBuffer* sampleBuffer);
40
41    NS::UInteger                                           startOfEncoderSampleIndex() const;
42    void                                                   setStartOfEncoderSampleIndex(NS::UInteger startOfEncoderSampleIndex);
43
44    NS::UInteger                                           endOfEncoderSampleIndex() const;
45    void                                                   setEndOfEncoderSampleIndex(NS::UInteger endOfEncoderSampleIndex);
46};
47
48class BlitPassSampleBufferAttachmentDescriptorArray : public NS::Referencing<BlitPassSampleBufferAttachmentDescriptorArray>
49{
50public:
51    static class BlitPassSampleBufferAttachmentDescriptorArray* alloc();
52
53    class BlitPassSampleBufferAttachmentDescriptorArray*        init();
54
55    class BlitPassSampleBufferAttachmentDescriptor*             object(NS::UInteger attachmentIndex);
56
57    void                                                        setObject(const class BlitPassSampleBufferAttachmentDescriptor* attachment, NS::UInteger attachmentIndex);
58};
59
60class BlitPassDescriptor : public NS::Copying<BlitPassDescriptor>
61{
62public:
63    static class BlitPassDescriptor*                     alloc();
64
65    class BlitPassDescriptor*                            init();
66
67    static class BlitPassDescriptor*                     blitPassDescriptor();
68
69    class BlitPassSampleBufferAttachmentDescriptorArray* sampleBufferAttachments() const;
70};
71
72}
73
74// static method: alloc
75_MTL_INLINE MTL::BlitPassSampleBufferAttachmentDescriptor* MTL::BlitPassSampleBufferAttachmentDescriptor::alloc()
76{
77    return NS::Object::alloc<MTL::BlitPassSampleBufferAttachmentDescriptor>(_MTL_PRIVATE_CLS(MTLBlitPassSampleBufferAttachmentDescriptor));
78}
79
80// method: init
81_MTL_INLINE MTL::BlitPassSampleBufferAttachmentDescriptor* MTL::BlitPassSampleBufferAttachmentDescriptor::init()
82{
83    return NS::Object::init<MTL::BlitPassSampleBufferAttachmentDescriptor>();
84}
85
86// property: sampleBuffer
87_MTL_INLINE MTL::CounterSampleBuffer* MTL::BlitPassSampleBufferAttachmentDescriptor::sampleBuffer() const
88{
89    return Object::sendMessage<MTL::CounterSampleBuffer*>(this, _MTL_PRIVATE_SEL(sampleBuffer));
90}
91
92_MTL_INLINE void MTL::BlitPassSampleBufferAttachmentDescriptor::setSampleBuffer(const MTL::CounterSampleBuffer* sampleBuffer)
93{
94    Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(setSampleBuffer_), sampleBuffer);
95}
96
97// property: startOfEncoderSampleIndex
98_MTL_INLINE NS::UInteger MTL::BlitPassSampleBufferAttachmentDescriptor::startOfEncoderSampleIndex() const
99{
100    return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(startOfEncoderSampleIndex));
101}
102
103_MTL_INLINE void MTL::BlitPassSampleBufferAttachmentDescriptor::setStartOfEncoderSampleIndex(NS::UInteger startOfEncoderSampleIndex)
104{
105    Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(setStartOfEncoderSampleIndex_), startOfEncoderSampleIndex);
106}
107
108// property: endOfEncoderSampleIndex
109_MTL_INLINE NS::UInteger MTL::BlitPassSampleBufferAttachmentDescriptor::endOfEncoderSampleIndex() const
110{
111    return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(endOfEncoderSampleIndex));
112}
113
114_MTL_INLINE void MTL::BlitPassSampleBufferAttachmentDescriptor::setEndOfEncoderSampleIndex(NS::UInteger endOfEncoderSampleIndex)
115{
116    Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(setEndOfEncoderSampleIndex_), endOfEncoderSampleIndex);
117}
118
119// static method: alloc
120_MTL_INLINE MTL::BlitPassSampleBufferAttachmentDescriptorArray* MTL::BlitPassSampleBufferAttachmentDescriptorArray::alloc()
121{
122    return NS::Object::alloc<MTL::BlitPassSampleBufferAttachmentDescriptorArray>(_MTL_PRIVATE_CLS(MTLBlitPassSampleBufferAttachmentDescriptorArray));
123}
124
125// method: init
126_MTL_INLINE MTL::BlitPassSampleBufferAttachmentDescriptorArray* MTL::BlitPassSampleBufferAttachmentDescriptorArray::init()
127{
128    return NS::Object::init<MTL::BlitPassSampleBufferAttachmentDescriptorArray>();
129}
130
131// method: objectAtIndexedSubscript:
132_MTL_INLINE MTL::BlitPassSampleBufferAttachmentDescriptor* MTL::BlitPassSampleBufferAttachmentDescriptorArray::object(NS::UInteger attachmentIndex)
133{
134    return Object::sendMessage<MTL::BlitPassSampleBufferAttachmentDescriptor*>(this, _MTL_PRIVATE_SEL(objectAtIndexedSubscript_), attachmentIndex);
135}
136
137// method: setObject:atIndexedSubscript:
138_MTL_INLINE void MTL::BlitPassSampleBufferAttachmentDescriptorArray::setObject(const MTL::BlitPassSampleBufferAttachmentDescriptor* attachment, NS::UInteger attachmentIndex)
139{
140    Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(setObject_atIndexedSubscript_), attachment, attachmentIndex);
141}
142
143// static method: alloc
144_MTL_INLINE MTL::BlitPassDescriptor* MTL::BlitPassDescriptor::alloc()
145{
146    return NS::Object::alloc<MTL::BlitPassDescriptor>(_MTL_PRIVATE_CLS(MTLBlitPassDescriptor));
147}
148
149// method: init
150_MTL_INLINE MTL::BlitPassDescriptor* MTL::BlitPassDescriptor::init()
151{
152    return NS::Object::init<MTL::BlitPassDescriptor>();
153}
154
155// static method: blitPassDescriptor
156_MTL_INLINE MTL::BlitPassDescriptor* MTL::BlitPassDescriptor::blitPassDescriptor()
157{
158    return Object::sendMessage<MTL::BlitPassDescriptor*>(_MTL_PRIVATE_CLS(MTLBlitPassDescriptor), _MTL_PRIVATE_SEL(blitPassDescriptor));
159}
160
161// property: sampleBufferAttachments
162_MTL_INLINE MTL::BlitPassSampleBufferAttachmentDescriptorArray* MTL::BlitPassDescriptor::sampleBufferAttachments() const
163{
164    return Object::sendMessage<MTL::BlitPassSampleBufferAttachmentDescriptorArray*>(this, _MTL_PRIVATE_SEL(sampleBufferAttachments));
165}