Currently the GrTextureParams are set on GrSamplerState. This is wrong for at least reasons: 1) ...
12 years, 2 months ago
(2012-09-17 21:47:53 UTC)
#1
Currently the GrTextureParams are set on GrSamplerState. This is wrong for at
least reasons:
1) GrSamplerState was basically a description of each stage and is going away as
its functionality moves to GrCustomStage
2) In the future stage's can have more than one texture and thus need to have
multiple GrTextureParams.
I had hoped to combine GrTextureParams and GrTextureAccess, but GrTextureParams
is used to perform cache lookups when NPOT tiling may not be available. At
cache-lookup time we don't know either the texture or swizzle that will be used
with it (which are required for GrTextureAccess) :(
Why not combine and have an "unknown" enum or an "incomplete" flag? Eh, no, probably ...
12 years, 2 months ago
(2012-09-17 21:57:32 UTC)
#2
Why not combine and have an "unknown" enum or an "incomplete" flag?
Eh, no, probably better to do it your way. Hard for me to know without
rereading all the code.
On Mon, Sep 17, 2012 at 10:47 PM, <bsalomon@google.com> wrote:
> Reviewers: robertphillips,
>
> Message:
> Currently the GrTextureParams are set on GrSamplerState. This is wrong
> for at least reasons:
>
> 1) GrSamplerState was basically a description of each stage and is going
> away as its functionality moves to GrCustomStage
>
> 2) In the future stage's can have more than one texture and thus need to
> have multiple GrTextureParams.
>
> I had hoped to combine GrTextureParams and GrTextureAccess, but
> GrTextureParams is used to perform cache lookups when NPOT tiling may
> not be available. At cache-lookup time we don't know either the texture
> or swizzle that will be used with it (which are required for
> GrTextureAccess) :(
>
>
>
>
> Please review this at
https://codereview.appspot.**com/6496135/<https://codereview.appspot.com/6496...
>
> Affected files:
> M include/gpu/GrSamplerState.h
> M include/gpu/GrTextureAccess.h
> M include/gpu/SkGpuDevice.h
> M src/effects/gradients/**SkGradientShader.cpp
> M src/effects/gradients/**SkGradientShaderPriv.h
> M src/effects/gradients/**SkLinearGradient.cpp
> M src/effects/gradients/**SkRadialGradient.cpp
> M src/effects/gradients/**SkSweepGradient.cpp
> M src/effects/gradients/**SkTwoPointConicalGradient.cpp
> M src/effects/gradients/**SkTwoPointRadialGradient.cpp
> M src/gpu/GrContext.cpp
> M src/gpu/GrCustomStage.cpp
> M src/gpu/GrDrawState.h
> M src/gpu/GrTextContext.cpp
> M src/gpu/GrTextureAccess.cpp
> M src/gpu/SkGpuDevice.cpp
> M src/gpu/effects/**GrSingleTextureEffect.cpp
> M src/gpu/effects/**GrSingleTextureEffect.h
> M src/gpu/effects/**GrTextureDomainEffect.cpp
> M src/gpu/effects/**GrTextureDomainEffect.h
> M src/gpu/gl/GrGpuGL.cpp
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "skia-review" group.
> To post to this group, send email to skia-review@googlegroups.com.
> To unsubscribe from this group, send email to skia-review+unsubscribe@**
> googlegroups.com <skia-review%2Bunsubscribe@googlegroups.com>.
> For more options, visit this group at http://groups.google.com/**
> group/skia-review?hl=en <http://groups.google.com/group/skia-review?hl=en>
> .
>
>
Issue 6496135: Move GrTextureParams from GrSamplerState to GrTextureAccess
(Closed)
Created 12 years, 2 months ago by bsalomon
Modified 12 years, 2 months ago
Reviewers: robertphillips, TomH
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 13