Update comments about RDMTL structs

Wrong name in comment:
MTLVertexBufferLayoutDescriptor is now MTLVertexDescriptor

Added comments for
FunctionGroup
MTLRenderPassDescriptor
This commit is contained in:
Jake Turner
2023-04-25 14:09:01 +01:00
committed by Baldur Karlsson
parent 6dbb7a3a86
commit e11130580a
+5 -1
View File
@@ -248,7 +248,7 @@ struct VertexBufferLayoutDescriptor
NS::UInteger stepRate = 1;
};
// MTLVertexBufferLayoutDescriptor : based on the interface defined in
// MTLVertexDescriptor : based on the interface defined in
// Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLVertexDescriptor.h
struct VertexDescriptor
{
@@ -259,6 +259,8 @@ struct VertexDescriptor
rdcarray<VertexAttributeDescriptor> attributes;
};
// Helper struct for holding MTLLinkedFunctions::groups data
// NSDictionary<NSString*, NSArray<id<MTLFunction>>*> *groups;
struct FunctionGroup
{
rdcstr callsite;
@@ -404,6 +406,8 @@ struct RenderPassSampleBufferAttachmentDescriptor
NS::UInteger endOfFragmentSampleIndex = MTLCounterDontSample;
};
// MTLRenderPassDescriptor : based on the interface defined in
// Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h
struct RenderPassDescriptor
{
RenderPassDescriptor() = default;