@@ -1065,7 +1065,7 @@ _ResourceGenerator::_GenerateHgiTextureResources(
10651065 using TextureType = HioGlslfxResourceLayout::TextureType;
10661066
10671067 for (auto const & texture : textureElements) {
1068- HgiShaderTextureType const textureType = _textureTypeMap[texture.textureType ];
1068+ HgiShaderTextureType const hgiTextureType = _textureTypeMap[texture.textureType ];
10691069 HdFormat const hdTextureFormat =
10701070 HdStHioConversions::GetHdFormat (texture.format );
10711071 if (texture.arraySize > 0 ) {
@@ -1076,15 +1076,15 @@ _ResourceGenerator::_GenerateHgiTextureResources(
10761076 texture.bindingIndex ,
10771077 texture.dim ,
10781078 HdStHgiConversions::GetHgiFormat (hdTextureFormat),
1079- textureType );
1079+ hgiTextureType );
10801080 } else {
10811081 HgiShaderFunctionAddTexture (
10821082 funcDesc,
10831083 texture.name ,
10841084 texture.bindingIndex ,
10851085 texture.dim ,
10861086 HdStHgiConversions::GetHgiFormat (hdTextureFormat),
1087- textureType );
1087+ hgiTextureType );
10881088 }
10891089 }
10901090}
@@ -2012,7 +2012,6 @@ HdSt_CodeGen::Compile(HdStResourceRegistry*const registry)
20122012 capabilities->IsSet (HgiDeviceCapabilitiesBitsShaderDoublePrecision);
20132013 const bool minusOneToOneDepth =
20142014 capabilities->IsSet (HgiDeviceCapabilitiesBitsDepthRangeMinusOnetoOne);
2015- TfToken const apiName = registry->GetHgi ()->GetAPIName ();
20162015
20172016 bool const useHgiResourceGeneration =
20182017 IsEnabledHgiResourceGeneration (registry->GetHgi ());
@@ -6523,9 +6522,7 @@ HdSt_CodeGen::_GenerateShaderParameters(bool bindlessTextureEnabled)
65236522
65246523 _AddTextureElement (&_resTextures,
65256524 it->second .name , 2 ,
6526- binding.GetTextureUnit (),
6527- HioFormatFloat32Vec4,
6528- TextureType::TEXTURE);
6525+ binding.GetTextureUnit ());
65296526
65306527 _EmitTextureAccessors (
65316528 accessors, it->second , swizzle, fallbackSwizzle,
0 commit comments