this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Continue implementing MTLDevice stubs

Thomas A 5529096b 30d3187a

+233
+5
src/frameworks/Metal/include/Metal/MTLCommandBuffer.h
··· 1 + #import <Foundation/Foundation.h> 2 + 3 + @protocol MTLCommandBuffer<NSObject> 4 + 5 + @end
+16
src/frameworks/Metal/include/Metal/MTLCommandQueue.h
··· 1 + #import <Foundation/Foundation.h> 2 + 3 + #import <Metal/MTLCommandBuffer.h> 4 + #import <Metal/MTLDevice.h> 5 + 6 + @protocol MTLDevice; 7 + 8 + @protocol MTLCommandQueue<NSObject> 9 + 10 + @property(readonly) id<MTLDevice> device; 11 + @property(copy, atomic) NSString *label; 12 + 13 + - (id<MTLCommandBuffer>)commandBuffer; 14 + - (id<MTLCommandBuffer>)commandBufferWithUnretainedReferences; 15 + 16 + @end
+11
src/frameworks/Metal/include/Metal/MTLDevice.h
··· 1 1 #import <Foundation/Foundation.h> 2 + 3 + #import <Metal/MTLCommandQueue.h> 4 + #import <Metal/MTLPixelFormat.h> 5 + #import <Metal/MTLTexture.h> 2 6 #import <Metal/MTLTypes.h> 7 + 8 + @protocol MTLCommandQueue; 3 9 4 10 typedef NS_ENUM(NSUInteger, MTLDeviceLocation) { 5 11 MTLDeviceLocationBuiltIn = 0, ··· 81 87 @property(readonly, getter=areRasterOrderGroupsSupported) BOOL rasterOrderGroupsSupported; 82 88 @property(readonly, getter=isDepth24Stencil8PixelFormatSupported) BOOL depth24Stencil8PixelFormatSupported; 83 89 @property(readonly, getter=areBarycentricCoordsSupported) BOOL barycentricCoordsSupported; 90 + @property(readonly) BOOL supportsShaderBarycentricCoordinates; 91 + @property(readonly) NSUInteger sparseTileSizeInBytes; 84 92 85 93 - (BOOL)supportsFamily:(MTLGPUFamily)gpuFamily; 86 94 - (BOOL)supportsFeatureSet:(MTLFeatureSet)featureSet; 87 95 - (void)getDefaultSamplePositions:(MTLSamplePosition *)positions count:(NSUInteger)count; 96 + - (BOOL)supportsVertexAmplificationCount:(NSUInteger)count; 97 + - (id<MTLCommandQueue>)newCommandQueue; 98 + - (MTLSize)sparseTileSizeWithTextureType:(MTLTextureType)textureType pixelFormat:(MTLPixelFormat)pixelFormat sampleCount:(NSUInteger)sampleCount; 88 99 89 100 @end
+157
src/frameworks/Metal/include/Metal/MTLPixelFormat.h
··· 1 + #import <Foundation/Foundation.h> 2 + 3 + typedef NS_ENUM(NSUInteger, MTLPixelFormat) { 4 + MTLPixelFormatA8Unorm = 1, 5 + MTLPixelFormatR8Unorm = 10, 6 + MTLPixelFormatR8Unorm_sRGB = 11, 7 + MTLPixelFormatR8Snorm = 12, 8 + MTLPixelFormatR8Uint = 13, 9 + MTLPixelFormatR8Sint = 14, 10 + 11 + MTLPixelFormatR16Unorm = 20, 12 + MTLPixelFormatR16Snorm = 22, 13 + MTLPixelFormatR16Uint = 23, 14 + MTLPixelFormatR16Sint = 24, 15 + MTLPixelFormatR16Float = 25, 16 + MTLPixelFormatRG8Unorm = 30, 17 + MTLPixelFormatRG8Unorm_sRGB = 31, 18 + MTLPixelFormatRG8Snorm = 32, 19 + MTLPixelFormatRG8Uint = 33, 20 + MTLPixelFormatRG8Sint = 34, 21 + 22 + MTLPixelFormatB5G6R5Unorm = 40, 23 + MTLPixelFormatA1BGR5Unorm = 41, 24 + MTLPixelFormatABGR4Unorm = 42, 25 + MTLPixelFormatBGR5A1Unorm = 43, 26 + 27 + MTLPixelFormatR32Uint = 53, 28 + MTLPixelFormatR32Sint = 54, 29 + MTLPixelFormatR32Float = 55, 30 + MTLPixelFormatRG16Unorm = 60, 31 + MTLPixelFormatRG16Snorm = 62, 32 + MTLPixelFormatRG16Uint = 63, 33 + MTLPixelFormatRG16Sint = 64, 34 + MTLPixelFormatRG16Float = 65, 35 + MTLPixelFormatRGBA8Unorm = 70, 36 + MTLPixelFormatRGBA8Unorm_sRGB = 71, 37 + MTLPixelFormatRGBA8Snorm = 72, 38 + MTLPixelFormatRGBA8Uint = 73, 39 + MTLPixelFormatRGBA8Sint = 74, 40 + MTLPixelFormatBGRA8Unorm = 80, 41 + MTLPixelFormatBGRA8Unorm_sRGB = 81, 42 + 43 + MTLPixelFormatBGR10A2Unorm = 94, 44 + MTLPixelFormatRGB10A2Unorm = 90, 45 + MTLPixelFormatRGB10A2Uint = 91, 46 + MTLPixelFormatRG11B10Float = 92, 47 + MTLPixelFormatRGB9E5Float = 93, 48 + 49 + MTLPixelFormatRG32Uint = 103, 50 + MTLPixelFormatRG32Sint = 104, 51 + MTLPixelFormatRG32Float = 105, 52 + MTLPixelFormatRGBA16Unorm = 110, 53 + MTLPixelFormatRGBA16Snorm = 112, 54 + MTLPixelFormatRGBA16Uint = 113, 55 + MTLPixelFormatRGBA16Sint = 114, 56 + MTLPixelFormatRGBA16Float = 115, 57 + 58 + MTLPixelFormatRGBA32Uint = 123, 59 + MTLPixelFormatRGBA32Sint = 124, 60 + MTLPixelFormatRGBA32Float = 125, 61 + 62 + MTLPixelFormatPVRTC_RGB_2BPP = 160, 63 + MTLPixelFormatPVRTC_RGB_2BPP_sRGB = 161, 64 + MTLPixelFormatPVRTC_RGB_4BPP = 162, 65 + MTLPixelFormatPVRTC_RGB_4BPP_sRGB = 163, 66 + MTLPixelFormatPVRTC_RGBA_2BPP = 164, 67 + MTLPixelFormatPVRTC_RGBA_2BPP_sRGB = 165, 68 + MTLPixelFormatPVRTC_RGBA_4BPP = 166, 69 + MTLPixelFormatPVRTC_RGBA_4BPP_sRGB = 167, 70 + 71 + MTLPixelFormatEAC_R11Unorm = 170, 72 + MTLPixelFormatEAC_R11Snorm = 172, 73 + MTLPixelFormatEAC_RG11Unorm = 174, 74 + MTLPixelFormatEAC_RG11Snorm = 176, 75 + MTLPixelFormatEAC_RGBA8 = 178, 76 + MTLPixelFormatEAC_RGBA8_sRGB = 179, 77 + MTLPixelFormatETC2_RGB8 = 180, 78 + MTLPixelFormatETC2_RGB8_sRGB = 181, 79 + MTLPixelFormatETC2_RGB8A1 = 182, 80 + MTLPixelFormatETC2_RGB8A1_sRGB = 183, 81 + 82 + MTLPixelFormatASTC_4x4_sRGB = 186, 83 + MTLPixelFormatASTC_5x4_sRGB = 187, 84 + MTLPixelFormatASTC_5x5_sRGB = 188, 85 + MTLPixelFormatASTC_6x5_sRGB = 189, 86 + MTLPixelFormatASTC_6x6_sRGB = 190, 87 + MTLPixelFormatASTC_8x5_sRGB = 192, 88 + MTLPixelFormatASTC_8x6_sRGB = 193, 89 + MTLPixelFormatASTC_8x8_sRGB = 194, 90 + MTLPixelFormatASTC_10x5_sRGB = 195, 91 + MTLPixelFormatASTC_10x6_sRGB = 196, 92 + MTLPixelFormatASTC_10x8_sRGB = 197, 93 + MTLPixelFormatASTC_10x10_sRGB = 198, 94 + MTLPixelFormatASTC_12x10_sRGB = 199, 95 + MTLPixelFormatASTC_12x12_sRGB = 200, 96 + MTLPixelFormatASTC_4x4_LDR = 204, 97 + MTLPixelFormatASTC_5x4_LDR = 205, 98 + MTLPixelFormatASTC_5x5_LDR = 206, 99 + MTLPixelFormatASTC_6x5_LDR = 207, 100 + MTLPixelFormatASTC_6x6_LDR = 208, 101 + MTLPixelFormatASTC_8x5_LDR = 210, 102 + MTLPixelFormatASTC_8x6_LDR = 211, 103 + MTLPixelFormatASTC_8x8_LDR = 212, 104 + MTLPixelFormatASTC_10x5_LDR = 213, 105 + MTLPixelFormatASTC_10x6_LDR = 214, 106 + MTLPixelFormatASTC_10x8_LDR = 215, 107 + MTLPixelFormatASTC_10x10_LDR = 216, 108 + MTLPixelFormatASTC_12x10_LDR = 217, 109 + MTLPixelFormatASTC_12x12_LDR = 218, 110 + MTLPixelFormatASTC_4x4_HDR = 222, 111 + MTLPixelFormatASTC_5x4_HDR = 223, 112 + MTLPixelFormatASTC_5x5_HDR = 224, 113 + MTLPixelFormatASTC_6x5_HDR = 225, 114 + MTLPixelFormatASTC_6x6_HDR = 226, 115 + MTLPixelFormatASTC_8x5_HDR = 228, 116 + MTLPixelFormatASTC_8x6_HDR = 229, 117 + MTLPixelFormatASTC_8x8_HDR = 230, 118 + MTLPixelFormatASTC_10x5_HDR = 231, 119 + MTLPixelFormatASTC_10x6_HDR = 232, 120 + MTLPixelFormatASTC_10x8_HDR = 233, 121 + MTLPixelFormatASTC_10x10_HDR = 234, 122 + MTLPixelFormatASTC_12x10_HDR = 235, 123 + MTLPixelFormatASTC_12x12_HDR = 236, 124 + 125 + MTLPixelFormatBC1_RGBA = 130, 126 + MTLPixelFormatBC1_RGBA_sRGB = 131, 127 + MTLPixelFormatBC2_RGBA = 132, 128 + MTLPixelFormatBC2_RGBA_sRGB = 133, 129 + MTLPixelFormatBC3_RGBA = 134, 130 + MTLPixelFormatBC3_RGBA_sRGB = 135, 131 + MTLPixelFormatBC4_RUnorm = 140, 132 + MTLPixelFormatBC4_RSnorm = 141, 133 + MTLPixelFormatBC5_RGUnorm = 142, 134 + MTLPixelFormatBC5_RGSnorm = 143, 135 + MTLPixelFormatBC6H_RGBFloat = 150, 136 + MTLPixelFormatBC6H_RGBUfloat = 151, 137 + MTLPixelFormatBC7_RGBAUnorm = 152, 138 + MTLPixelFormatBC7_RGBAUnorm_sRGB = 153, 139 + 140 + MTLPixelFormatGBGR422 = 240, 141 + MTLPixelFormatBGRG422 = 241, 142 + 143 + MTLPixelFormatDepth16Unorm = 250, 144 + MTLPixelFormatDepth32Float = 252, 145 + MTLPixelFormatStencil8 = 253, 146 + MTLPixelFormatDepth24Unorm_Stencil8 = 255, 147 + MTLPixelFormatDepth32Float_Stencil8 = 260, 148 + MTLPixelFormatX32_Stencil8 = 261, 149 + MTLPixelFormatX24_Stencil8 = 262, 150 + 151 + MTLPixelFormatBGRA10_XR = 552, 152 + MTLPixelFormatBGRA10_XR_sRGB = 553, 153 + MTLPixelFormatBGR10_XR = 554, 154 + MTLPixelFormatBGR10_XR_sRGB = 555, 155 + 156 + MTLPixelFormatInvalid = 0 157 + };
+14
src/frameworks/Metal/include/Metal/MTLTexture.h
··· 1 + #import <Foundation/Foundation.h> 2 + 3 + typedef NS_ENUM(NSUInteger, MTLTextureType) { 4 + MTLTextureType1D = 0, 5 + MTLTextureType1DArray = 1, 6 + MTLTextureType2D = 2, 7 + MTLTextureType2DArray = 3, 8 + MTLTextureType2DMultisample = 4, 9 + MTLTextureTypeCube = 5, 10 + MTLTextureTypeCubeArray = 6, 11 + MTLTextureType3D = 7, 12 + MTLTextureType2DMultisampleArray = 8, 13 + MTLTextureTypeTextureBuffer = 9 14 + };
+17
src/frameworks/Metal/include/Metal/MTLTypes.h
··· 12 12 } MTLSize; 13 13 14 14 MTLSize MTLSizeMake(NSUInteger width, NSUInteger height, NSUInteger depth); 15 + 16 + typedef struct { 17 + NSUInteger x; 18 + NSUInteger y; 19 + NSUInteger z; 20 + } MTLOrigin; 21 + 22 + MTLOrigin MTLOriginMake(NSUInteger x, NSUInteger y, NSUInteger z); 23 + 24 + typedef struct { 25 + MTLOrigin origin; 26 + MTLSize size; 27 + } MTLRegion; 28 + 29 + MTLRegion MTLRegionMake1D(NSUInteger x, NSUInteger width); 30 + MTLRegion MTLRegionMake2D(NSUInteger x, NSUInteger y, NSUInteger width, NSUInteger height); 31 + MTLRegion MTLRegionMake3D(NSUInteger x, NSUInteger y, NSUInteger z, NSUInteger width, NSUInteger height, NSUInteger depth);
+4
src/frameworks/Metal/include/Metal/Metal.h
··· 138 138 #import <Metal/MTLCommandQueueDescriptorInternal.h> 139 139 #import <Metal/MTLDevice.h> 140 140 #import <Metal/MTLTypes.h> 141 + #import <Metal/MTLCommandBuffer.h> 142 + #import <Metal/MTLCommandQueue.h> 143 + #import <Metal/MTLTexture.h> 144 + #import <Metal/MTLPixelFormat.h>
+9
src/frameworks/Metal/src/MTLTypes.m
··· 1 + #import <Metal/MTLTypes.h> 2 + 3 + MTLSize MTLSizeMake(NSUInteger width, NSUInteger height, NSUInteger depth) { 4 + return { width, height, depth }; 5 + } 6 + 7 + MTLOrigin MTLOriginMake(NSUInteger x, NSUInteger y, NSUInteger z) { 8 + return {x, y, z}; 9 + }