Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/shaders/metal/mtl_shader_common.msl
| Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
| * control clipping for a given plane, otherwise the value is ignored. */ | * control clipping for a given plane, otherwise the value is ignored. */ | ||||
| constant int MTL_clip_distance_enabled0 [[function_constant(20)]]; | constant int MTL_clip_distance_enabled0 [[function_constant(20)]]; | ||||
| constant int MTL_clip_distance_enabled1 [[function_constant(21)]]; | constant int MTL_clip_distance_enabled1 [[function_constant(21)]]; | ||||
| constant int MTL_clip_distance_enabled2 [[function_constant(22)]]; | constant int MTL_clip_distance_enabled2 [[function_constant(22)]]; | ||||
| constant int MTL_clip_distance_enabled3 [[function_constant(23)]]; | constant int MTL_clip_distance_enabled3 [[function_constant(23)]]; | ||||
| constant int MTL_clip_distance_enabled4 [[function_constant(24)]]; | constant int MTL_clip_distance_enabled4 [[function_constant(24)]]; | ||||
| constant int MTL_clip_distance_enabled5 [[function_constant(25)]]; | constant int MTL_clip_distance_enabled5 [[function_constant(25)]]; | ||||
| /* Compute and SSBOs. */ | |||||
| constant int MTL_storage_buffer_base_index [[function_constant(26)]]; | |||||
| /** Internal attribute conversion functionality. */ | /** Internal attribute conversion functionality. */ | ||||
| /* Following descriptions in mtl_shader.hh, Metal only supports some implicit | /* Following descriptions in mtl_shader.hh, Metal only supports some implicit | ||||
| * attribute type conversions. These conversions occur when there is a difference | * attribute type conversions. These conversions occur when there is a difference | ||||
| * between the type specified in the vertex descriptor (In the input vertex buffers), | * between the type specified in the vertex descriptor (In the input vertex buffers), | ||||
| * and the attribute type in the shader's VertexIn struct (ShaderInterface). | * and the attribute type in the shader's VertexIn struct (ShaderInterface). | ||||
| * | * | ||||
| * The supported implicit conversions are described here: | * The supported implicit conversions are described here: | ||||
| * https://developer.apple.com/documentation/metal/mtlvertexattributedescriptor/1516081-format?language=objc | * https://developer.apple.com/documentation/metal/mtlvertexattributedescriptor/1516081-format?language=objc | ||||
| ▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines | |||||