diff --git a/source/slang/slang-emit-metal.cpp b/source/slang/slang-emit-metal.cpp index 6f73c7cae7..0bd79ea0cc 100644 --- a/source/slang/slang-emit-metal.cpp +++ b/source/slang/slang-emit-metal.cpp @@ -919,9 +919,7 @@ bool MetalSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inO void MetalSourceEmitter::emitVectorTypeNameImpl(IRType* elementType, IRIntegerValue elementCount) { - // NM: Passing count here, as Metal 64-bit vector type names do not match their scalar - // equivalents. - emitSimpleTypeKnowingCount(elementType, elementCount); + emitSimpleType(elementType); switch (elementType->getOp()) { @@ -1041,7 +1039,7 @@ void MetalSourceEmitter::emitParamTypeImpl(IRType* type, String const& name) emitType(type, name); } -void MetalSourceEmitter::emitSimpleTypeKnowingCount(IRType* type, IRIntegerValue elementCount) +void MetalSourceEmitter::emitSimpleTypeImpl(IRType* type) { switch (type->getOp()) { @@ -1288,11 +1286,6 @@ void MetalSourceEmitter::emitSimpleTypeKnowingCount(IRType* type, IRIntegerValue } } -void MetalSourceEmitter::emitSimpleTypeImpl(IRType* type) -{ - emitSimpleTypeKnowingCount(type, 1); -} - void MetalSourceEmitter::_emitType(IRType* type, DeclaratorInfo* declarator) { switch (type->getOp()) diff --git a/source/slang/slang-emit-metal.h b/source/slang/slang-emit-metal.h index 1872a2e353..17562b1c49 100644 --- a/source/slang/slang-emit-metal.h +++ b/source/slang/slang-emit-metal.h @@ -54,8 +54,6 @@ class MetalSourceEmitter : public CLikeSourceEmitter IRType* valueType, IRPackOffsetDecoration* decoration) SLANG_OVERRIDE; - void emitSimpleTypeKnowingCount(IRType* type, IRIntegerValue elementCount); - virtual void emitMeshShaderModifiersImpl(IRInst* varInst) SLANG_OVERRIDE; virtual void emitSimpleTypeImpl(IRType* type) SLANG_OVERRIDE; virtual void emitParamTypeImpl(IRType* type, String const& name) SLANG_OVERRIDE;