Skip to content

Commit ce56f20

Browse files
committed
removing type emit wrapper now that element count isnt used
1 parent 5330f8c commit ce56f20

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

source/slang/slang-emit-metal.cpp

+2-9
Original file line numberDiff line numberDiff line change
@@ -919,9 +919,7 @@ bool MetalSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inO
919919

920920
void MetalSourceEmitter::emitVectorTypeNameImpl(IRType* elementType, IRIntegerValue elementCount)
921921
{
922-
// NM: Passing count here, as Metal 64-bit vector type names do not match their scalar
923-
// equivalents.
924-
emitSimpleTypeKnowingCount(elementType, elementCount);
922+
emitSimpleType(elementType);
925923

926924
switch (elementType->getOp())
927925
{
@@ -1041,7 +1039,7 @@ void MetalSourceEmitter::emitParamTypeImpl(IRType* type, String const& name)
10411039
emitType(type, name);
10421040
}
10431041

1044-
void MetalSourceEmitter::emitSimpleTypeKnowingCount(IRType* type, IRIntegerValue elementCount)
1042+
void MetalSourceEmitter::emitSimpleTypeImpl(IRType* type)
10451043
{
10461044
switch (type->getOp())
10471045
{
@@ -1288,11 +1286,6 @@ void MetalSourceEmitter::emitSimpleTypeKnowingCount(IRType* type, IRIntegerValue
12881286
}
12891287
}
12901288

1291-
void MetalSourceEmitter::emitSimpleTypeImpl(IRType* type)
1292-
{
1293-
emitSimpleTypeKnowingCount(type, 1);
1294-
}
1295-
12961289
void MetalSourceEmitter::_emitType(IRType* type, DeclaratorInfo* declarator)
12971290
{
12981291
switch (type->getOp())

source/slang/slang-emit-metal.h

-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ class MetalSourceEmitter : public CLikeSourceEmitter
5454
IRType* valueType,
5555
IRPackOffsetDecoration* decoration) SLANG_OVERRIDE;
5656

57-
void emitSimpleTypeKnowingCount(IRType* type, IRIntegerValue elementCount);
58-
5957
virtual void emitMeshShaderModifiersImpl(IRInst* varInst) SLANG_OVERRIDE;
6058
virtual void emitSimpleTypeImpl(IRType* type) SLANG_OVERRIDE;
6159
virtual void emitParamTypeImpl(IRType* type, String const& name) SLANG_OVERRIDE;

0 commit comments

Comments
 (0)