yum-mirror/VkFFT
git clone https://git.yummers.dev/yum-mirror/VkFFT
ba7001c
develop
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 : 34static class BlitPassSampleBufferAttachmentDescriptor * alloc (); 35 36class BlitPassSampleBufferAttachmentDescriptor * init (); 37 38class CounterSampleBuffer * sampleBuffer ()const ; 39void setSampleBuffer (const class CounterSampleBuffer * sampleBuffer ); 40 41NS ::UInteger startOfEncoderSampleIndex ()const ; 42void setStartOfEncoderSampleIndex (NS ::UInteger startOfEncoderSampleIndex ); 43 44NS ::UInteger endOfEncoderSampleIndex ()const ; 45void setEndOfEncoderSampleIndex (NS ::UInteger endOfEncoderSampleIndex ); 46}; 47 48class BlitPassSampleBufferAttachmentDescriptorArray :public NS ::Referencing < BlitPassSampleBufferAttachmentDescriptorArray > 49{ 50public : 51static class BlitPassSampleBufferAttachmentDescriptorArray * alloc (); 52 53class BlitPassSampleBufferAttachmentDescriptorArray * init (); 54 55class BlitPassSampleBufferAttachmentDescriptor * object (NS ::UInteger attachmentIndex ); 56 57void setObject (const class BlitPassSampleBufferAttachmentDescriptor * attachment ,NS ::UInteger attachmentIndex ); 58}; 59 60class BlitPassDescriptor :public NS ::Copying < BlitPassDescriptor > 61{ 62public : 63static class BlitPassDescriptor * alloc (); 64 65class BlitPassDescriptor * init (); 66 67static class BlitPassDescriptor * blitPassDescriptor (); 68 69class BlitPassSampleBufferAttachmentDescriptorArray * sampleBufferAttachments ()const ; 70}; 71 72} 73 74// static method: alloc 75_MTL_INLINE MTL ::BlitPassSampleBufferAttachmentDescriptor * MTL ::BlitPassSampleBufferAttachmentDescriptor ::alloc () 76{ 77return NS ::Object ::alloc < MTL ::BlitPassSampleBufferAttachmentDescriptor > (_MTL_PRIVATE_CLS (MTLBlitPassSampleBufferAttachmentDescriptor )); 78} 79 80// method: init 81_MTL_INLINE MTL ::BlitPassSampleBufferAttachmentDescriptor * MTL ::BlitPassSampleBufferAttachmentDescriptor ::init () 82{ 83return NS ::Object ::init < MTL ::BlitPassSampleBufferAttachmentDescriptor > (); 84} 85 86// property: sampleBuffer 87_MTL_INLINE MTL ::CounterSampleBuffer * MTL ::BlitPassSampleBufferAttachmentDescriptor ::sampleBuffer ()const 88{ 89return Object ::sendMessage < MTL ::CounterSampleBuffer *> (this ,_MTL_PRIVATE_SEL (sampleBuffer )); 90} 91 92_MTL_INLINE voidMTL ::BlitPassSampleBufferAttachmentDescriptor ::setSampleBuffer (const MTL ::CounterSampleBuffer * sampleBuffer ) 93{ 94Object ::sendMessage < void > (this ,_MTL_PRIVATE_SEL (setSampleBuffer_ ),sampleBuffer ); 95} 96 97// property: startOfEncoderSampleIndex 98_MTL_INLINE NS ::UInteger MTL ::BlitPassSampleBufferAttachmentDescriptor ::startOfEncoderSampleIndex ()const 99{ 100return Object ::sendMessage < NS ::UInteger > (this ,_MTL_PRIVATE_SEL (startOfEncoderSampleIndex )); 101} 102 103_MTL_INLINE voidMTL ::BlitPassSampleBufferAttachmentDescriptor ::setStartOfEncoderSampleIndex (NS ::UInteger startOfEncoderSampleIndex ) 104{ 105Object ::sendMessage < void > (this ,_MTL_PRIVATE_SEL (setStartOfEncoderSampleIndex_ ),startOfEncoderSampleIndex ); 106} 107 108// property: endOfEncoderSampleIndex 109_MTL_INLINE NS ::UInteger MTL ::BlitPassSampleBufferAttachmentDescriptor ::endOfEncoderSampleIndex ()const 110{ 111return Object ::sendMessage < NS ::UInteger > (this ,_MTL_PRIVATE_SEL (endOfEncoderSampleIndex )); 112} 113 114_MTL_INLINE voidMTL ::BlitPassSampleBufferAttachmentDescriptor ::setEndOfEncoderSampleIndex (NS ::UInteger endOfEncoderSampleIndex ) 115{ 116Object ::sendMessage < void > (this ,_MTL_PRIVATE_SEL (setEndOfEncoderSampleIndex_ ),endOfEncoderSampleIndex ); 117} 118 119// static method: alloc 120_MTL_INLINE MTL ::BlitPassSampleBufferAttachmentDescriptorArray * MTL ::BlitPassSampleBufferAttachmentDescriptorArray ::alloc () 121{ 122return NS ::Object ::alloc < MTL ::BlitPassSampleBufferAttachmentDescriptorArray > (_MTL_PRIVATE_CLS (MTLBlitPassSampleBufferAttachmentDescriptorArray )); 123} 124 125// method: init 126_MTL_INLINE MTL ::BlitPassSampleBufferAttachmentDescriptorArray * MTL ::BlitPassSampleBufferAttachmentDescriptorArray ::init () 127{ 128return NS ::Object ::init < MTL ::BlitPassSampleBufferAttachmentDescriptorArray > (); 129} 130 131// method: objectAtIndexedSubscript: 132_MTL_INLINE MTL ::BlitPassSampleBufferAttachmentDescriptor * MTL ::BlitPassSampleBufferAttachmentDescriptorArray ::object (NS ::UInteger attachmentIndex ) 133{ 134return Object ::sendMessage < MTL ::BlitPassSampleBufferAttachmentDescriptor *> (this ,_MTL_PRIVATE_SEL (objectAtIndexedSubscript_ ),attachmentIndex ); 135} 136 137// method: setObject:atIndexedSubscript: 138_MTL_INLINE voidMTL ::BlitPassSampleBufferAttachmentDescriptorArray ::setObject (const MTL ::BlitPassSampleBufferAttachmentDescriptor * attachment ,NS ::UInteger attachmentIndex ) 139{ 140Object ::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{ 146return NS ::Object ::alloc < MTL ::BlitPassDescriptor > (_MTL_PRIVATE_CLS (MTLBlitPassDescriptor )); 147} 148 149// method: init 150_MTL_INLINE MTL ::BlitPassDescriptor * MTL ::BlitPassDescriptor ::init () 151{ 152return NS ::Object ::init < MTL ::BlitPassDescriptor > (); 153} 154 155// static method: blitPassDescriptor 156_MTL_INLINE MTL ::BlitPassDescriptor * MTL ::BlitPassDescriptor ::blitPassDescriptor () 157{ 158return 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{ 164return Object ::sendMessage < MTL ::BlitPassSampleBufferAttachmentDescriptorArray *> (this ,_MTL_PRIVATE_SEL (sampleBufferAttachments )); 165}