Forum > OpenGL

Metal Framework for MacOS

<< < (2/6) > >>

trev:

--- Quote from: Igor Kokarev on December 26, 2019, 02:06:35 pm ---Thanks, one correction:
"to use Metal you will need macOS 10.12 (Sierra)"

Metal was introduced in macOS 10.11 (El Capitan).

--- End quote ---

Thanks, fixed!

Igor Kokarev:
Chris,

Thanks! I'll try next week.

Igor Kokarev:
Hi,

Can you help me - rendering to texture in Metal not working.

I attach a simple test project.

It must show a rectangle, but only shows clear color (blueish). Rendering directly to screen works. If you turn off {$define Rendertarget} in MyMetal.pas, you'll see a rectangle.

ChrisR:
C arrays are indexed from 0, just like dynamic Pascal arrays.

colorAttach:=RndPass.colorAttachmentAtIndex(1);   
->
colorAttach:=RndPass.colorAttachmentAtIndex(0);   

Igor Kokarev:
Hi Chris,

Many thanks for your reply! I'll check tomorrow and will write about results.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version