BeRo1985 / pasvulkan

Vulkan header generator, OOP-style API wrapper, framework and prospective Vulkan-based game engine for Object Pascal
zlib License
193 stars 31 forks source link

PasVulkan Framework TpvTexture fSampler issue #36

Closed johnhutch111 closed 6 months ago

johnhutch111 commented 6 months ago

I am using a TpvTexture. I want to use an external fsampler. However, If I call the TpvTexture.Finish routine the fsampler (whether internal or External) is set to NIL. This is the same for the fImage and fImageView.

If I want to assign an external sampler then I MUST assign after the Finish call. Is this correct?

It also seems the internal fSampler (if used) is NOT deleted correctly. I am not sure if this is true for the fImage and the fImageView.

Any comments? John

BeRo1985 commented 6 months ago

Should be fixed now, please test :-)

johnhutch111 commented 6 months ago

Thanks, looks good.