--- layout: stdlib-reference --- # \_Texture\\.WriteSamplerFeedback ## Description ## Signature
void _Texture<T, Shape, isArray, isMS, sampleCount, access, isShadow, isCombined, format>.WriteSamplerFeedback<S>(
    Texture2D<S> tex,
    SamplerState samp,
    vector<float, 2> location,
    float clamp)
    where S : ITexelElement
    where T : ITexelElement
    where Shape == __Shape2D
    where isArray == 0
    where isMS == 0
    where sampleCount == 0
    where access == 4
    where isShadow == 0
    where isCombined == 0
    where format == 0;

void _Texture<T, Shape, isArray, isMS, sampleCount, access, isShadow, isCombined, format>.WriteSamplerFeedback<S>(
    Texture2D<S> tex,
    SamplerState samp,
    vector<float, 2> location)
    where S : ITexelElement
    where T : ITexelElement
    where Shape == __Shape2D
    where isArray == 0
    where isMS == 0
    where sampleCount == 0
    where access == 4
    where isShadow == 0
    where isCombined == 0
    where format == 0;

void _Texture<T, Shape, isArray, isMS, sampleCount, access, isShadow, isCombined, format>.WriteSamplerFeedback<S>(
    Texture2DArray<S> texArray,
    SamplerState samp,
    vector<float, 3> location,
    float clamp)
    where S : ITexelElement
    where T : __BuiltinSamplerFeedbackType
    where Shape == __Shape2D
    where isArray == 1
    where isMS == 0
    where sampleCount == 0
    where access == 4
    where isShadow == 0
    where isCombined == 0
    where format == 0;

void _Texture<T, Shape, isArray, isMS, sampleCount, access, isShadow, isCombined, format>.WriteSamplerFeedback<S>(
    Texture2DArray<S> texArray,
    SamplerState samp,
    vector<float, 3> location)
    where S : ITexelElement
    where T : __BuiltinSamplerFeedbackType
    where Shape == __Shape2D
    where isArray == 1
    where isMS == 0
    where sampleCount == 0
    where access == 4
    where isShadow == 0
    where isCombined == 0
    where format == 0;

## Generic Parameters #### S: [ITexelElement](../../interfaces/itexelelement-016/index.html) ## Parameters #### tex : [Texture2D](../texture2d-08.html)\ #### samp : [SamplerState](../samplerstate-07/index.html) #### location : [vector](../vector/index.html)\ #### clamp : float #### texArray : [Texture2DArray](../texture2darray-089.html)\ #### location : [vector](../vector/index.html)\ ## Availability and Requirements Defined for the following targets: #### hlsl Available in all stages. #### cpp Available in all stages.