Jump to content

  • Log In with Google      Sign In   
  • Create Account

benbon

Member Since 13 Aug 2008
Offline Last Active Mar 29 2012 12:51 AM

Posts I've Made

In Topic: present problem with multi monitor

03 February 2012 - 02:47 AM

anybody can tell me why?

In Topic: does directx 9 have the Similar function like opengl's glLogicOp

22 August 2009 - 04:46 AM

Quote:
Original post by Stringer Bell
Quote:
Original post by Erik Rufelt
Which means bitwise AND and XOR operations. As far as I know this can't be done, not in DirectX, and as stated in the glLogicOp reference not in OpenGL either for RGBA formats, only for indexed palette color. Colors are usually regarded as floating point values, and as such those operations have no meaning.

Perhaps it can be done in a shader if you use a render target with an integer format, and your GPU supports bitwise logic operations, though I've never tried anything like that.


Hi,

OpenGL indeed supports glLogicOp for for RGBA and INDEX mode.
See the official spec here:
glLogicOp
(i guess yours is outdated).

Concerning DirectX 9, 10 or 11, they don't expose this functionnality (but only ROP blend modes. Btw it's not clear if there is dedicated hardware for handling logic operations on current GPU generation/ could be done at the driver level with shaders etc).

However, i've successfully have implemented it with decent performances on top of DirectX 10 API in the case of a commercial port of an OpenGL CAD software.

I think it would be rather unfeasible in DirectX 9/or extremly slow.

Ok, thanks, i see


In Topic: does directx 9 have the Similar function like opengl's glLogicOp

21 August 2009 - 04:11 PM

R2_XORPEN、R2_MASKPEN

In Topic: does directx 9 have the Similar function like opengl's glLogicOp

21 August 2009 - 06:12 AM

yes,but i want to know how to implement the function like opengl's glLogicOp or gdi's setrop2 in the directx's fixed-pipeline.

In Topic: does directx 9 have the Similar function like opengl's glLogicOp

20 August 2009 - 08:40 PM

dx does't have the build-in rop?

PARTNERS