Closed j9liu closed 6 months ago
@kring Following your comment, I decided to untangle the texture transform implementation from the texture views. If a client doesn't understand / implement KHR_texture_transform
, we should probably respect that. The texture transform associated with the textures can still be retrieved; it's just up to clients to apply the transform themselves.
@kring Made some changes based on our discussion. Let me know what you think!
Looks great, thanks @j9liu!
Depends on #802 so merge that first.
Closes #801.
This adds a new
KhrTextureTransform
utility class to parse aKHR_texture_transform
extension. If successfully parsed, UVs can be transformed via theapplyTransform
function.Both
FeatureIDTextureView
andPropertyTexturePropertyView
will now account forKHR_texture_transform
when their respectiveget
functions are called.