Results 1 to 3 of 3

Thread: SPIR-V and ps_2_0, ps_2_x shader profiles

  1. #1
    Newbie
    Join Date
    Jun 2018
    Posts
    2

    SPIR-V and ps_2_0, ps_2_x shader profiles

    Hi,

    Could a fragment shader as represented by SPIR-V be compatible with ps_2_0/ps_2_x shader profiles?

    ps_2_0/ps_2_x shader profiles target DirectX 9 -era hardware.

    Ilyes

  2. #2
    Newbie
    Join Date
    Jun 2018
    Posts
    2
    Quote Originally Posted by ilyesgouta View Post
    Could a fragment shader as represented by SPIR-V be compatible with ps_2_0/ps_2_x shader profiles?
    In other terms, could a ps_2_0/ps_2_x fragment shader (equivalent to GLSL 1.20 or GLES 2.0's ESSL) be correctly represented by a SPIR-V intermediate representation?

    The SPIR-V representation would then be translated to a native ps_2_0 shader and executed on the related GPU.

  3. #3
    I don't see why not. You'll have to build a translation layer between SPIR-V and the 2.0 pixel shaders. And that layer will need to make sure that the input SPIR-V doesn't have constructs that PS 2.0 can't handle.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean