bugpng++, a C++ wrapper for libpng - Bugs: bug #64765, Ensuring contiguous memory for...

 
 

bug #64765: Ensuring contiguous memory for textures

Submitter:  None
Submitted:  Mon 09 Oct 2023 03:55:49 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 10 Oct 2023 08:24:23 AM UTC, comment #1: 

Sure, have a look at the solid_pixel_buffer class template — that one uses a contiguous block of memory.

Alexander Shulgin <alexshulgin>
Group administrator
Mon 09 Oct 2023 03:55:49 PM UTC, original submission:  

I am using png++ for an opengl application and I have to, at times, load textures during renders. I am running the application on Windows 10.

The issue is that once the texture is loaded into system memory, I can see that the memory is non-contiguous (disjointed) and thus I can't memcpy it in one attempt. I have to copy row by row, which makes the process expensive.

Is there any mechanism to force the library to allocate contiguous memory for the entire image/texture?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by alexshulgin (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code