Khronos Public Bugzilla
Bug 150 - fx_sampler_common allows sampler elements to be empty; needs explanation
fx_sampler_common allows sampler elements to be empty; needs explanation
Status: NEW
Product: COLLADA
Classification: Unclassified
Component: Schema
1.5.0
Macintosh Mac OS
: P3 minor
: Release 1.5.1
Assigned To: Fabrice Robinet
COLLADA Work Group email alias
: collada-fx
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-19 21:50 PDT by Ellen Finch
Modified: 2014-01-07 10:23 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ellen Finch 2009-04-19 21:50:16 PDT
Opening originally as a schema bug but maybe it's a spec bug for missing info. 

fx_sampler_common can legally be empty (as shown in the profile_GLES example). However, it's not clearthat this makes sense. Does it? If so, when? 

Here's part of the example:

<profile_GLES> 
  <newparam sid="gravel"> 
    <sampler2D/> 
  </newparam> 
  <newparam sid="grass"> 
    <sampler2D/> 
  </newparam> 
  <newparam sid="transition"> 
    <sampler2D/> 
  </newparam> 
  <technique sid="main"> 
    <pass sid="p0"> 
      <states> 
      <texture_pipeline> 
        <value> 
          <texcombiner> 
            <constant> 0.0f, 0.0f, 0.0f, 1.0f </constant> 
            <RGB operator="INTERPOLATE"> 
               <argument source="TEXTURE" operand="SRC_COLOR" sampler="gravel"/> 
              <argument source="TEXTURE" operand="SRC_COLOR" sampler="grass"/> 
              <argument source="TEXTURE" operand="SRC_ALPHA" 
sampler="transition"/> 
            </RGB> 
            <alpha operator="INTERPOLATE"> 
              <argument source="TEXTURE" operand="SRC_ALPHA" sampler="gravel"/> 
              <argument source="TEXTURE" operand="SRC_ALPHA" sampler="grass"/> 
              <argument source="TEXTURE" operand="SRC_ALPHA" 
sampler="transition"/>