How to get the size of datatexture


Greetings everyone,

I am using a data texture to capture my screen.

I tried to get the size of the data texture like this but it’s returning [0,0].


How can i get the exact value of the width and height of data texture.

Thanks in advance